Linker IT Software
Google
Web www.oraxcel.com
menubar-top-links menubar-top-rechts
Home Help Search Login
Welcome, Guest. Please Login.
SQL*XL: Database to Excel bridge litLIB: Excel power functions pack ExcelLock: Locking and securing your valuable Excel spreadsheets encOffice: Protect your Excel file easy and safe encOffice: Protect your Excel file easy and safe
Pages: 1
Building a backup job with robocopy (Read 5165 times)
Gerrit-Jan Linker
YaBB Administrator
*****




Posts: 75
Building a backup job with robocopy
09.12.07 at 17:02:56
 
Building a backup job with robocopy
 
I have developed a backup system using the robocopy software (part of the windows resource kit) replacing the use of the SynchToy software. For the SyncToy backup system see:
http://www.oraxcel.com/cgi-bin/yabb2/YaBB.pl?num=1182867756
 
I have only replaced the synctoy statements with calls to robocopy. These are the robocopy commands I am using:
 
Code:
robocopy \\server\share1    d:\share1    /MIR /NDL /NFL >> robocopy_log.txt
robocopy \\server\share2    d:\share2    /MIR /NDL /NFL >> robocopy_log.txt
robocopy \\server\share3    d:\share3    /MIR /NDL /NFL >> robocopy_log.txt
robocopy \\server\share4    d:\share4    /MIR /NDL /NFL >> robocopy_log.txt

copy robocopy_log.txt "\\server\share1\backup log"
 


 
Explanation:
/MIR : Mirror job.  
/NDL : No directory logging
/NFL : No file logging
 
It prints a nice and concise summary log:
 

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows     ::     Version XP010
-------------------------------------------------------------------------------
 
  Started : Sun Dec 09 15:34:13 2007
 
   Source : \\server\share1\
     Dest : d:\data\
 
    Files : *.*
         
  Options : *.* /NDL /NFL /S /E /COPY:DAT /PURGE /MIR /R:1000000 /W:30  
 
------------------------------------------------------------------------------
 
 
------------------------------------------------------------------------------
 
               Total    Copied   Skipped  Mismatch    FAILED    Extras
     Dirs :      2450         0      2450         0         0         0
    Files :     39164         1     39163         0         0         0
    Bytes :   2.472 g    79.4 k   2.472 g         0         0         0
    Times :   0:01:08   0:00:00                       0:00:00   0:01:08
 
    Speed :             4068750 Bytes/sec.
    Speed :             232.815 MegaBytes/min.
 
    Ended : Sun Dec 09 15:35:22 2007
Back to top
 
« Last Edit: 09.12.07 at 17:08:18 by Gerrit-Jan Linker »  

Gerrit-Jan Linker
Linker IT Software
Email WWW Gerrit-Jan Linker   IP Logged
Pages: 1