Skip to content

Instantly share code, notes, and snippets.

@shadowmaru
Forked from azisaka/local-backup.rb
Created August 28, 2009 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadowmaru/177027 to your computer and use it in GitHub Desktop.
Save shadowmaru/177027 to your computer and use it in GitHub Desktop.
DIRECTORIES = %w(Users/username)
TO = '/path/for/backup'
OPTIONS = { :rsync => '--progress -varRu', :remote => false }
rsync DIRECTORIES, nil, TO, OPTIONS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment