Best way to sync a local drive to a network location?

Associate
Joined
10 Jan 2009
Posts
1,833
I work with a lot of image and video files so it doesn't make much sense to have them stored on my server for speed, but I would like to have access to those files from other machines in my house as soon as I turn my main rig off

What is the best solution for automatically syncing the drives?
 
hi mate, great idea but not really a good solution I don't think - I have too much data on my scratch drive that I want to sync, 250GB is almost full :(
 
Here is the script I use to sync two folders - feel free to modify to suit your needs :)

@echo off
:: SpOoN-PC66 to SPN-FILE-01 Drive Backup Jobby

:: D Drive
set D_Drive_SRC="D:"
set D_Drive_DST="\\SPN-FILE-01\Backup\SPN-PC-66\D"

:: C Drive Desktop
set Desktop_SRC="C:\Users\%USERNAME%\Desktop"
set Desktop_DST="\\SPN-FILE-01\Backup\SPN-PC-66\Desktop"

:: Picks up date in format DD.MM.YYYY e.g. 27.08.2008
For /F "tokens=1,2,3 delims=/ " %%a in ('date /t') do set date=%%a.%%b.%%c_

:: Pics up time in format HHMM e.g. 01.45
For /F "tokens=1,2 delims=:" %%a in ('time/t') do set time=Time_%%a.%%b

:: Output path and file
set outfile="C:\Tools\Logs\SpOoN-PC66_To_SPN-FILE-01_%date%%time%.log"

:: Copy Commands
C:\Tools\Robocopy.exe %D_Drive_SRC% %D_Drive_DST% /MIR /XD "VMware VMs" "$RECYCLE.BIN" "System Volume Information" /XF "pagefile.sys" /R:3 /W:3 /V /NP /LOG:%outfile%
C:\Tools\Robocopy.exe %Desktop_SRC% %Desktop_DST% /MIR /R:3 /W:3 /V /NP /LOG+:%outfile%

attrib -s -h \\SPN-FILE-01\Backup\SPN-PC-66\D
 
I recently needed to reliably sync files between 2 network locations. Robocopy was the obvious choice. However, when looking to download it, I found it had a replacement called RichCopy:

https://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx

Comes with a GUI as well and seemed to do what it says on the tin.

Be careful with Richcopy as it has some issues that were never fixed (as it has been discontinued), mainly regarding include or exclude file patterns.
 
Back
Top Bottom