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


How to RoboCopy backup files between servers


How to RoboCopy backup files between servers

Author
Message
ALIF-662928
ALIF-662928
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1217 Visits: 764
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
Todd Engen
Todd Engen
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1745 Visits: 6336
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 *


carlos.campos-hidalgo
carlos.campos-hidalgo
SSC Rookie
SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)SSC Rookie (31 reputation)

Group: General Forum Members
Points: 31 Visits: 27
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..

w00tCarlos Camposw00t
System Administrator & Now DBA Admin
poldi.rijke
poldi.rijke
SSC Journeyman
SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)SSC Journeyman (87 reputation)

Group: General Forum Members
Points: 87 Visits: 476
Also check:
Quick and Dirty DR Solution Using Robocopy
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