File Sync question

Soldato
Joined
18 Oct 2002
Posts
6,253
Location
EGBB
I am trying to sync some important files from my c:\ to my D:\ (seperate hdd so hopefully if one fails I will have a copy on the second to retrieve). I am using Microsoft Briefcase to do this, but it means that everytime I update the source file (updated everyday) I have to manually go an update the sync briefcase file. Is there anyway of making this process automated, so when I close the source file the briefcase file updates automatically?

Many thanks.
 
Ok this is rough but it works well for backing up data to another network drive then a NAS. Robocopy is a double edged sword though, it will sync exactly what's on the source folder e.g if you delete something from the source then do a back up you will delete the same file from the destination in the process unless you specify otherwise. I run it (and other batch files) daily, should be easy to modify for your needs.

@Echo off

set drive=C:\Backup
set sublocal=C:\backup\sub
set subnas=W:\backup\sub

set rcops=/r:1 /w:1 /mir /v /tee /log:W:\logs\sub.txt
set folder=%date:~7,2%
set bcmd=xcopy /s /c /d /e /h /i /r /k /y /v
set date="%date:~0,2%-%date:~3,2%-%date:~6,6%"

echo ### Backing up Sublimation Jobs (from Network)...
%bcmd% "Z:\" "%drive%\Sub"

echo ### Syncing with NAS Mirror...
move W:\logs\sub.txt W:\logs\OLD\
robocopy %sublocal% %subnas% %rcops%

echo Backup Complete!

@pause
 
Last edited:
just found out you can use 'SyncToy' with scheduled tasks too, so has a good gui to go with it

look in the help section in synctoy (its a microsoft tool)
 
Back
Top Bottom