rbackup

Backup your stuff with Ruby and Rsync.

Compatibility

Tested with Ruby 1.8.6, 1.8.7, and 1.9.1.

Setup


sudo gem install rbackup  --source http://gemcutter.org

Create ~/.rbackup.yml


site:
  server:
    source: /Users/me/site
    destination: deploy@server:/var/www
    exclude:
     - .git
     - /site/config/database.yml
usb:
  documents:
    source: ~/Documents
    destination: /Volumes/USB Key
    exclude:
     - Software
     - Virtual Machines.localized
  pictures:
    source: ~/Pictures
    destination: /Volumes/USB Key
    include:
      - Favorites

Backup


rbackup site
  // deploys your site
rbackup usb
  // back up documents and pictures
rbackup documents
  // back up documents only
rbackup
  // back up and deploy everything