Home > linux, mac, tips > Simple Rsync Backup

Simple Rsync Backup

December 4th, 2007 Leave a comment Go to comments

Rsync is an awesome tool for creating and restoring backups, but it really helps if you remember how you ran the command the first time.

This post is an effort to fix that problem with my backups, or rather an excuse to not have to bother remembering it anymore.

rsync -avz -e ssh –delete –stats –progress /Users/jay jallen@(hostname/IP):/home/jallen/stuff2 –exclude ‘.Trash’ –exclude ‘.DS_Store’

All of the options starting with delete are double dashes. For some reason when I copy and paste the above into a terminal it pastes them as single dashes which screws up the command.

Note: This is being used to backup a MacBook to a remote SSH-accessible drive, hence the exclude statements for .Trash and .DS_Store.

Categories: linux, mac, tips Tags:
  1. December 4th, 2007 at 23:17 | #1

    good call on the exclude aspect, I have not been using that…. until now 🙂

  1. No trackbacks yet.