Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. Model.new(: backup_site, 'Backup website') do# backup mysql database database MySQL do |db | db.name = "mydb"
  2. db.
  3. username = "user"
  4. db.
  5. password = "password"
  6. db.host = "host"
  7. db.port = myport end## backup the website code archive: site do |archive | archive.add '/var/www/mysite'
  8. end
  9. archive: blog do |archive | archive.add '/var/www/myblog'
  10. end#
  11. save to dropbox store_with Dropbox do |db | db.api_key = ""
  12. db.
  13. api_secret = ""#: app_folder(
  14. default) or: dropbox db.access_type = : app_folder db.path = "mydropboxfolder"
  15. 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"
  16. db.
  17. username = "user"
  18. db.
  19. password = "password"
  20. db.
  21. host = "host"
  22. db.port = myport end## backup the website code archive: site do |archive | archive.add '/var/www/mysite'
  23. end
  24. archive: blog do |archive | archive.add '/var/www/myblog'
  25. end#
  26. save to dropbox store_with Dropbox do |db | db.api_key = ""
  27. db.
  28. api_secret = ""#: app_folder(
  29. default) or: dropbox db.access_type = : app_folder db.path = "mydropboxfolder"
  30. 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