Sync From Data Archiving Computer to External Hard Drive
Where to run
Computer where the external HD is connected (typically baboon or snake)
Syntax
rsync -av SOURCE_DIR DESTINATION_DIR
Examples
- USB/FireWire/eSATA HD connected to Linux workstation:
rsync -av /depot17id/$USER/2010-08-03 /media/disk/ - USB/FireWire HD (formatted as FAT32) connected to Linux workstation:
rsync -rLtv --modify-window=1 /depot17id/$USER/2010-08-03 /media/disk/ - USB/FireWire HD (formatted as FAT32) connected to Mac OS X computer:
rsync -rLtv --modify-window=1 /depot17id/$USER/2010-08-03 /Volumes/LACIE/
The "--modify-window=1" option is required because the FAT32 file system cannot represent times with a 1 second resolution; it has a resolution of 2 seconds. Without this option, it may think that a file has been modified when it has not.
Keep Directory Trees In Sync
The rsync command works well for keeping two directory trees in sync. You can keep two directory trees continuously in sync by combining the rerun command with the rsync command. Run "rerun -h" if you'd like more details about the rerun command.
Syntax
rerun forever DELAY rsync [ARGS...]
Example
(run the rsync command, wait 15 minutes, repeat) rerun forever 15m rsync -av /depot17id/$USER/2010-08-03 /media/disk/