SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Changing the Backup path


Changing the Backup path

Author
Message
ALIF-662928
ALIF-662928
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1855 Visits: 768
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
Jayakumar Krishnan
Jayakumar Krishnan
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1366 Visits: 809
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
ALIF-662928
ALIF-662928
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1855 Visits: 768
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.
Jayakumar Krishnan
Jayakumar Krishnan
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1366 Visits: 809
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
mobasha
mobasha
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1518 Visits: 1284
try this link
http://www.sqlservercentral.com/Forums/Topic489736-357-1.aspx?Update=1

..>>..

MobashA
Great1
Great1
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search