Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4c0a3bb0bc
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (46 sloc) 0.851 kb

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
Jump to Line
Something went wrong with that request. Please try again.