Using rsync in OSX

September 28, 2006

Here’s my current rsync command, posted here so I can find it again in case I ever lose my bash history.


nice -n -20 rsync -aE --stats --progress --delete ~/ /Volumes/Firewire\ Disk/Backup/

To summarize, this copies all the files from my home directory to my firewire hard drive, ignoring files which haven’t changed since the last time I ran it, and deleting files which exist in the backup but not the original location. There’s nothing that’s not really explained in man rsync, but notice the sudo nice -n -20 command before it. That lets me keep on working or watching a movie, without rsync driving my poor G4 into the ground.

Marc Charbonneau is a mobile software engineer in Portland, OR. Want to reply to this article? Get in touch on Twitter @mbcharbonneau.