A Digital Age Deserves A Digital Leader

Need software

Need software

Postby blodger14 » Sat May 03, 2008 1:54 pm

i was wondering, would it be possible to use a piece of software (not raid as i really cba to set that up) which would allow me to keep 2 folders syncronised on different harddrives.

e.g. to back up my music, instead of having the manualy copy my new music into the backup folder, having software automaticaly synchronise the two folders.
Image
PRO Level 7
Posts: 273
Joined: Mon Oct 23, 2006 9:20 am
Location: England

Postby mnemonicj » Sat May 03, 2008 5:17 pm

I use a free program from Microsoft called robocopy.exe. It synchronizes the files and replaces any that have changed. I use it to sync music between my server and my media center every night so I don't have to load my wireless network while I am listening to music.

The software comes in a Pack by Microsoft for Windows Server 2003, but it also works on XP and robocopy.exe seems to be included in Vista, so you don;t need to download it if you have Vista. Download the Pack from Here on Microsoft's website, then create a batch file that you run whenever you want to sync. I downloaded these instructions from a website, but I am unable to find the website I go them from, otherwise I would give them credit:

Yeah, robocopy. It's part of the Windows Server 2003 resource kit (but works just fine in XP and 2000).

What you want to look into is the /MIR option. This will create an extact mirror of the target folder on the destination folder\drive. I use a batch file that looks like this to sync the content of a folder on my hard drive with an SD card:
robocopy.exe "g:\Smartphone Mirror" l:\ /mir /xd "Program Files" "SmartphoneNotes"


In the example above, the source folder is "Smartphone Mirror" and the destination is L:, although it could be "L:\Smartphone Backup" or even \\server\share. The XD switch excludes directories from synchronization, thus "Program Files and "SmartPhoneNotes" are excluded from robocopying.

I dunno if you can make robocopy run "on demand" (i.e. whenever content changes in a folder), but it's super-easy to make it run every x minutes\days\months with Task Scheduler via batch file. I've been using a robocopy batch file to copy .BKF files from my Exchange server to my local box for two years now and it hasn't screwed up once.


Then I use Windows Scheduler to run the batch file every night to sync the music.
PRO Level 15
User avatar
Posts: 1066
Joined: Tue Aug 17, 2004 1:41 am
Location: Indianapolis, IN

Postby augie » Sat May 03, 2008 6:45 pm

Everything that irritates us about others can lead us to an understanding of ourselves. -- Carl Jung

eVGA X58 tri-SLI, i7 930 @ 3.8GHz., Corsair 6GB Dominator, Inno3D GTX470, eVGA260
ASUS P8P67 Pro, i7 2600K @4.60 GHz, 8GB RAM, eVGA GTX 460
Community Director
User avatar
Posts: 7870
Joined: Mon Aug 26, 2002 1:55 am
Location: Laurentians, Quebec

Postby mnemonicj » Sun May 04, 2008 2:10 am

augie wrote:Arstechnica;)


There it is! Thanks! ^*^
PRO Level 15
User avatar
Posts: 1066
Joined: Tue Aug 17, 2004 1:41 am
Location: Indianapolis, IN

Postby blodger14 » Sun May 04, 2008 3:28 pm

hmm, i tried that but it doesnt seem to work. i thought maybe it was my command was wrong, so could someone have a look at it please?

robocopy.exe "C:\Documents and Settings\Jack\Desktop\test 2 " C:\Documents and Settings\Jack\Desktop\test 1 /mir


and i saved it as a .bat file
Image
PRO Level 7
Posts: 273
Joined: Mon Oct 23, 2006 9:20 am
Location: England

Postby mnemonicj » Sun May 04, 2008 6:51 pm

Try this:
robocopy.exe "C:\Documents and Settings\Jack\Desktop\test 2" "C:\Documents and Settings\Jack\Desktop\test 1" /mir

Make sure that the first folder is your source folder and your second folder is your destination folder.
PRO Level 15
User avatar
Posts: 1066
Joined: Tue Aug 17, 2004 1:41 am
Location: Indianapolis, IN

Postby blodger14 » Mon May 05, 2008 10:34 am

thanks :D that worked.

thats a really usefull program.
Image
PRO Level 7
Posts: 273
Joined: Mon Oct 23, 2006 9:20 am
Location: England

Return to General Tech Chat

Who is online

Users browsing this forum: No registered users and 4 guests

cron
cron