How can we help you today? How can we help you today?
Daniel Handley
Hi Hans If there are multiple log backup files in the restore directory SQL Backup will read information from all of them and restore them in the correct order. This means that the database will not be out of sync. In your case the file was not copied across so if a file is missing the standby server will be out of sync. There is no way to prevent this included in the software as the restore will use any files it finds. What should be established is why there was no file. If the backup didn't take place then all should be ok as the next file to be copied across will continue from the last. A potential work around is to add a count to the file name so that the server are in sync. If the count number is out then the files would not be restored. As a note when setting up log shipping i would recommend having a full backup copied across each night. This will ensure that the databases are in sync each day, and reduce the amount of backup files needed for a restore. To automate this you can use the scripts in other posts but change the date field to: @datestamp = CAST(DATEPART(m, getdate())AS varchar(5))+ CAST(DATEPART(d, getdate())AS varchar(5))+ CAST(DATEPART(yy, getdate())AS varchar(5)) This will remove the hours minutes and second so you know the filename for the restore process. Regards Dan / comments
Hi Hans If there are multiple log backup files in the restore directory SQL Backup will read information from all of them and restore them in the correct order. This means that the database will no...
0 votes
Yes it will always try to write a log file here. This directory should be accessible to all users, can you check the permissions as it sounds like there is an access issue. Regards Dan / comments
Yes it will always try to write a log file here. This directory should be accessible to all users, can you check the permissions as it sounds like there is an access issue. Regards Dan
0 votes