multiple restores in 1 job?
freddy12345
Posts: 19 Bronze 2
hi,
i need to move about 30 databases (all the user DBs) rom one server to anew server. i selected Backup all user databases and the backup job ran fine.
now i want to restore all those on the new server,and don't prefer to do it one restore job at a time. (the .SQBs are all in one folder.) is there an easy way to do this with SQL Backup? The restore DBs will have exactly the same name as they did on the source server.
THanks,
Fred
i need to move about 30 databases (all the user DBs) rom one server to anew server. i selected Backup all user databases and the backup job ran fine.
now i want to restore all those on the new server,and don't prefer to do it one restore job at a time. (the .SQBs are all in one folder.) is there an easy way to do this with SQL Backup? The restore DBs will have exactly the same name as they did on the source server.
THanks,
Fred
Comments
If your database names and backup file names are fairly unique, you can run the following script on your production server to generate the necessary restore scripts:
This will generate the necessary restore commands using wildcards to identify the file names e.g.
If you had a database named pubs_backup, this script will not work as the search pattern *pubs*.sqb will also pick up the backup file for pubs_backup.
Note that the data and log files will also be restored to the exact same paths as located on the production server, and those paths must exist prior to the restore.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Fred