Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Changing the Backup path Expand / Collapse
Author
Message
Posted Wednesday, April 23, 2008 9:33 AM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Monday, September 8, 2014 11:16 AM
Points: 759, Visits: 646
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
Post #489374
Posted Wednesday, April 23, 2008 11:03 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Friday, September 12, 2014 3:52 PM
Points: 417, Visits: 764
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
Jay
http://www.sqldbops.com
Post #489438
Posted Wednesday, April 23, 2008 11:19 AM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Monday, September 8, 2014 11:16 AM
Points: 759, Visits: 646
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.
Post #489447
Posted Wednesday, April 23, 2008 11:26 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Friday, September 12, 2014 3:52 PM
Points: 417, Visits: 764
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.



Thanks
Jay
http://www.sqldbops.com
Post #489451
Posted Thursday, April 24, 2008 4:38 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Sunday, January 29, 2012 1:45 AM
Points: 710, Visits: 1,284
try this link
http://www.sqlservercentral.com/Forums/Topic489736-357-1.aspx?Update=1



..>>..

MobashA
Post #489789
Posted Saturday, May 17, 2008 7:22 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, February 6, 2013 6:29 PM
Points: 3, Visits: 86
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!
Post #502563
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse