Modifying Script

  • I have been tasked with changing a backup script.

    The only problem is that the server has changed.

    Here's the script:

    osql -SVCDB02\Core -E -e -Q "EXEC master.dbo.xp_backup_database @database='xapi', @filename='\\VCDB02\j$\Program Files\Microsoft SQL Server\MSSQL$CORE\Backups\Phoenix_Upgrade_20080912\Step_11_xapi_backup.BAK', @init= 1, @threads = 3" >> \\vslpbapp1\Phoenix\archive\LogFiles\UpgradeBackupLog_20080912_Step_11.txt

    I don't see a j$\Program Files\Microsoft SQL Server\MSSQL$CORE\Backups\Phoenix_Upgrade_20080912\Step_11_xapi_backup.BAK'

    location I have a :

    J:\Microsoft SQL Server\MSSQL.2\MSSQL\Backup

    directory on the new server

    do I need to change this? or will it create the location/file?

  • as far as i know, if the path to the folder does not exist, the backup would fail.

    if the path exists, the .BAK file would get created or overwritten depending on whether the file exists or not.

    if you cannot browse to \\VCDB02\j$\Program Files\Microsoft SQL Server\MSSQL$CORE\Backups\Phoenix_Upgrade_20080912\ i would assume your backups are failing on a regular basis, so it's a very good thing you are investigating this now. definitely change the path to a known folder path.

    i typically create the backup on the local machine, and THEN move the backup to a share...i never try to create the backup on a shared folder directly.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

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