May 7, 2008 at 10:38 am
Hi,
Can anyone explain the process of How to RoboCopy backup files between servers.
In my case i want to send the backup files from local server to a remote server for storage and want to create a daily schedule.
Thanks
May 7, 2008 at 11:21 am
Usage information for that utility can be displayed by typing three question marks after the name.
ROBOCOPY /???
For a single file copy it would look something like this; where SERVER1 is the source and SERVER2 is the destination.
ROBOCOPY \\SERVER1\MyShare \\SERVER2\MyShare MyFile.bak
The above could be placed in a batch file then scheduled using scheduled tasks.
Here's a command line example of setting up a new task to run daily at 11:00pm as a specific user.
SCHTASK /Create /SC DAILY /ST 23:00:00 /TN MyTaskName /TR myBackup.cmd /RU mydomain\myusername /RP *
May 9, 2008 at 12:44 am
I use the follow sentence:
Robocopy e:\mssql\backup\bkAP.bak \\DestinationServer\f$\mssql\backup\bkAP.bak /MIR /SEC /Log:c:\temp\bkAP.log
The parameter /log if because I have a script that check if the robocopy has finish OK.
I hope that this POST results OK
Carlos Campos
System Adminstrator & now DBA Admin..
March 12, 2014 at 7:10 am
January 7, 2018 at 5:20 am
I would like to suggest you, try Long Path Tool program to resolve this issue.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy