Archive for the ‘bash’ Category

removing meta-annoying

Monday, April 21st, 2008

xattr -l -p com.apple.quarantine ~/Downloads/*

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%/}/