Results 1 to 7 of 7

Thread: Scheduled Network Copy....

  1. #1

    Scheduled Network Copy....

    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

    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

  2. #2
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    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
    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

  3. #3
    Thanks Ironbits Your a legend !!!

  4. #4
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    Heh, glad to help.
    Did I mention it is FAST?

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

  5. #5
    Its awesome

    My batch file is kicking butt 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

  6. #6
    Fixer of Broken Things FoBoT's Avatar
    Join Date
    Dec 2001
    Location
    Holden MO
    Posts
    2,137
    another vote for robocopy

    we are rolling it out as a server backup solution in a grunch of offices
    Use the right tool for the right job!

  7. #7
    Ancient Programmer Paratima's Avatar
    Join Date
    Dec 2001
    Location
    West Central Florida
    Posts
    3,296
    Ah! ...and a grunch would be about...??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •