Skip to content

Instantly share code, notes, and snippets.

@jwhitcraft
Created March 21, 2011 00:53
Show Gist options
  • Save jwhitcraft/878852 to your computer and use it in GitHub Desktop.
Save jwhitcraft/878852 to your computer and use it in GitHub Desktop.
Backup::Model.new(:storage_backup, 'Storage Backup') do
sync_with S3 do |s3|
s3.access_key_id = "access_key"
s3.secret_access_key = "secret_access_key"
s3.bucket = "bd_backup"
s3.path = "/macstorage"
s3.mirror = true
s3.additional_options = ['--exclude=".Spotlight-V100|.DS_Store|.fseventsd|.TemporaryItems|Movies|iMovie"']
s3.directories do |directory|
directory.add "/Volumes/Storage/"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment