PDA

View Full Version : Scheduled Network Copy....



Alpha_7
01-30-2003, 08:47 PM
Ok, I am working on a little project and thought I would bounce some ideas off you.

I have a server with private back up files, that I would like to have copied over to another system for a secure back up. (Yeah backing up, the back ups, but its what the boss wants).

I was hoping what I could do (this is a windows server) have a batch file that logs into the other computer, then copies across the necessary files.

I was thinking althought I'm a newbie, I was trying to do some of it myself of using Windows Scheduler or at command and the [b]net use[b/] command.


I'm sure you guys would have this sort of automation all the time for DC projects and *real* work :smoking:

My boss thinks there could be problems as the batch file has to be run at a system level, and not a user level (if that makes sense).

Thanks, any help or suggestions would be greatly appreciated :D

IronBits
01-30-2003, 11:13 PM
RoboCopy.exe 12-99 version ;)
ReplCmd.CMD
@echo off
RoboCopy \\sourceserver\D$ \\destServer\D$ /SEC /S /E /R:2 /W:2 /Z /log:C:\TEMP\backup.log :D
copy to \winnt\system32 (or someplace in the PATH)
Load it up in the Scheduler to run everynite, when most folks are not around. ;)
/SEC with security bits
/S subdirs
/E include empty dirs
/R retry
/W wait for retry
/Z networking restartable mode
This will in effect MIRROR drive to drive
Of course, you can get pickier
\\sourceServer\D$\DATA \\DestServer\D$\Backups\SourceServer etc.
It's in the Resource Kit :)
http://www.ss64.com/nt/robocopy.html < more syntax
Oh, and I like your Boss already :D

Alpha_7
01-30-2003, 11:31 PM
Thanks Ironbits :D Your a legend !!!

IronBits
01-30-2003, 11:46 PM
Heh, glad to help.
Did I mention it is FAST? :smoking:

Another *handy* tool is RCMD ... look it up, awesome ;)

Alpha_7
02-03-2003, 07:12 PM
Its awesome :D

My batch file is kicking butt :D The boss is impressed (its unpaid work experience, but its good to keep in their graces).
They haven't worked out I'm running DF from here, lol :D

FoBoT
02-03-2003, 08:42 PM
another vote for robocopy

we are rolling it out as a server backup solution in a grunch of offices

Paratima
02-03-2003, 08:56 PM
Ah! ...and a grunch would be about...?? :confused: