Changing the Backup path

  • Hi all,

    Can you guys help me in changing the backup path of a database to another drive, the backup is schedule with a ssis package. I dont know how to change the path in the ssis package.

    And another thing is that after the backup is changed to the other drive , i need to create a job which deletes the bak file older than one day. so that i can have only 1 backup file in the drive.

    Thanks

  • Hi Alif,

    Can you try the below steps on SSIS package on Control Flow task.

    To Change Path

    ----------------

    Right click On Backup database Task-->Edit-->On "Backup databases across one or more files"-->select and remove the existing path and ADD your new path.

    Example:

    E:\Backup\ABC.bak (Remove this)

    F:\Backup\DEF.bak (Add this)

    To clean backup history

    ------------------------

    Add the Maintenance cleanup Task

    Right click On it-->Edit-->SELECT "Search folder and delete files based on an extension" Radio button --> specify the Cleanup Path

    Specify the "File Extension" like bak

    On File Age

    SELECT "Delete files based on the age of the file at task run time"

    Specify the file age needs to be deleted "Delete files older than te following"

    Have a great day...

    warmest

    Jay.

  • thanks for your reply,

    I did in that way, but the problem again is there are 4 drives, but when i am adding the new path its showing only 2 drives and the other 2 are not shown. Do you know what is the problem i am facing.

  • In my server i could see all the available drives.

    If your SQL instance in cluster environment, then you can do only for the specified drive resources in the cluster administrator, if the drives not added in the SQL cluster group, you've to add them.

    If not the above scenario, you've to check with your IT Team guys.

    Have a great day...

    Jay.

  • try this link

    http://www.sqlservercentral.com/Forums/Topic489736-357-1.aspx?Update=1

    ..>>..

    MobashA

  • Nicole,

    Even though the drive is not listed, you can use a UNC path to backup to. Even if you receive a path error, you can use the default share for the drive or create a folder and share it on the drive that you are attempting to backup to.

    If no share: \\SystemName\DriveLetter$ (example: \\Server1\F$ )

    If share created: \\SystemName\Share

    Just beware though, that the Log On As account used to run the SQL instance must have access to the path in order for the backups to be successful.

    Hope this helps!

Viewing 6 posts - 1 through 5 (of 5 total)

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