Log Shipping Looking for Backups in wrong location

  • I have log shipping set up (initial set up) and the backup and copy jobs are working fine. The restores, however, are failing. The SQL Agent logs show the following for each t-log restore attempted:

    [font="Courier New"]Error: Cannot open backup device 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\ C:\SQLLogs_LS\dbname.trn'[/font]

    In the LS configuration, I set the path C:\SQLLogs_LS\, and when I run sp_help_log_shipping_secondary_database it does show that as the backup_destination_directory.

    Any ideas why it is adding the default backup directory in front?

  • Well, I figured it out - the path for the backup files, C:\SQLLogs_LS\, was actually ' C:\SQLLogs_LS\' with a leading space. I altered the job, and all is well. Need to be more watchful cutting and pasting from my DB documentation.

  • Just to add one point -->

    You were seeing path as "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\ C:\SQLLogs_LS\dbname.trn" .....

    The path C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\ would have been the default backup path for your instance... We did faced this issue last week and that is what I learned what a blank space can lead too.... Just thought to share ..:-)

    ===========================================
    Better try and fail than not to try at all...

    Database Best Practices[/url]

    SQL Server Best Practices[/url]

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply