Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Model.new(: backup_site, 'Backup website') do# backup mysql database database MySQL do |db | db.name = "mydb"
- db.
- username = "user"
- db.
- password = "password"
- db.host = "host"
- db.port = myport end## backup the website code archive: site do |archive | archive.add '/var/www/mysite'
- end
- archive: blog do |archive | archive.add '/var/www/myblog'
- end#
- save to dropbox store_with Dropbox do |db | db.api_key = ""
- db.
- api_secret = ""#: app_folder(
- default) or: dropbox db.access_type = : app_folder db.path = "mydropboxfolder"
- db.keep = 25 end compress_with Gzip# send notification email notify_by Mail do |mail | mail.on_success = true mail.on_warning = true mail.on_failure = true# mail configurations end endModel.new(: backup_site, 'Backup website') do# backup mysql database database MySQL do |db | db.name = "mydb"
- db.
- username = "user"
- db.
- password = "password"
- db.
- host = "host"
- db.port = myport end## backup the website code archive: site do |archive | archive.add '/var/www/mysite'
- end
- archive: blog do |archive | archive.add '/var/www/myblog'
- end#
- save to dropbox store_with Dropbox do |db | db.api_key = ""
- db.
- api_secret = ""#: app_folder(
- default) or: dropbox db.access_type = : app_folder db.path = "mydropboxfolder"
- db.keep = 25 end compress_with Gzip# send notification email notify_by Mail do |mail | mail.on_success = true mail.on_warning = true mail.on_failure = true# mail configurations end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement