Recover all databases to a new server
You can just use dbatools --> Start-DbaMigration  to do the entire server migration/copy - (choose backup/restore method) including jobs, logins, user objects created in system dbs, etc


  Start-DbaMigration
    [[-Source] &lt;DbaInstanceParameter&gt;] [[-Destination] &lt;DbaInstanceParameter[]&gt;]
    [-DetachAttach] [-Reattach] [-BackupRestore] [[-SharedPath] &lt;String&gt;]
    [-WithReplace] [-NoRecovery] [-SetSourceReadOnly] [-ReuseSourceFolderStructure]
    [-IncludeSupportDbs]
    [[-SourceSqlCredential] &lt;PSCredential&gt;]
    [[-DestinationSqlCredential] &lt;PSCredential&gt;]
    [[-Exclude] &lt;String[]&gt;] [-DisableJobsOnDestination] [-DisableJobsOnSource]
    [-ExcludeSaRename] [-UseLastBackup] [-Continue] [-Force] [-EnableException]
    [-WhatIf] [-Confirm] [&lt;CommonParameters&gt;]