How can we help you today? How can we help you today?
petey
fatherjack wrote: Nice call Jerry, automated restores are something that I would love to see integrated into SQLBackup and being able to use these would be a good move towards it. Jonathan The recently released version 6.3 goes some way towards achieving this. The following syntax: EXEC master..sqlbackup '-sql "RESTORE DATABASE AdventureWorks FROM BACKUPHISTORY LATEST_FULL"' will cause SQL Backup to look in its backup history records and simply restore the latest full backup that it finds. You can also use LATEST_DIFF to restore the latest differential backup, but the state of your database obviously needs to be in a non-recovery/read-only state, and is the correct base backup for the latest differential restore. Another point to note is that RESTORE ... FROM BACKUPHISTORY only works if you are restoring on the server instance where the backup was created, since that is where the backup history records reside. If you are restoring on another server instance, you can use the following: EXEC master..sqlbackup '-sql "RESTORE DATABASE AdventureWorks FROM DISK = [g:\backups\AdventureWorks*] LATEST_FULL"' will cause SQL Backup to find all files matching the AdventureWorks* search pattern in the g:\backups\ folder, determine the latest complete full backup set that's available, and restore it. Again, LATEST_DIFF is also available here. One last point is that all the other restore options can still be used with the above syntax e.g. MOVE, NORECOVERY, STANDBY etc. Thanks. / comments
fatherjack wrote: Nice call Jerry, automated restores are something that I would love to see integrated into SQLBackup and being able to use these would be a good move towards it. Jonathan The...
0 votes