Archive for October, 2007

backing up with rsync

Monday, October 1st, 2007

rysnc is a handy tool.

remoteHost=some.host.somewhere
remote_vol=/Volumes/backupDrive
remote_path=${remote_vol}/myComputer
rsh_command="ssh -i ~/.ssh/id_dsa -l myUserAcct"

rsync -avzR --no-implied-dirs --exclude=Library**Caches/ --delete-excluded --rsh="${rsh_command}" "${localDirs[*]}" ${remoteHost}:${remote_path%/}/