Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Query

Author  Topic 

sqlfresher2k7
Aged Yak Warrior

623 Posts

Posted - 2012-04-19 : 16:41:00
I have a backup schedule on local server.however I would Like to move the backup to network drive after one day.

I need a script to achieve above.

Thanks for yur help in advance

robvolk
Most Valuable Yak

15732 Posts

Posted - 2012-04-19 : 16:53:12
Use this as a Operating System step in a separate job:

ROBOCOPY C:\LocalBackupFolder \\server\RemoteBackupFolder *.bak /MOV /MINAGE:1

Change the folder paths to match your settings. Robocopy is a built-in (as of Windows 7/2008) copy utility, you can also download it from MSDN if you're using an earlier OS.
Go to Top of Page
   

- Advertisement -