gobackup.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. web:
  2. username: $GOBACKUP_WEB_USERNAME
  3. password: $GOBACKUP_WEB_PASSWORD
  4. models:
  5. punch-settle:
  6. schedule:
  7. cron: "0 5 * * *"
  8. compress_with:
  9. type: tgz
  10. storages:
  11. local:
  12. type: local
  13. keep: 20
  14. path: /etc/gobackup/backup/punch-settle
  15. databases:
  16. my_app:
  17. database: punch_settle
  18. type: mysql
  19. host: $GOBACKUP_DATABASE_HOST
  20. port: $GOBACKUP_DATABASE_PORT
  21. username: $GOBACKUP_DATABASE_USERNAME
  22. password: $GOBACKUP_DATABASE_PASSWORD
  23. args: --single-transaction --quick --skip-ssl
  24. notifiers:
  25. mail:
  26. type: mail
  27. host: smtp.qq.com
  28. port: 587
  29. username: $GOBACKUP_SMTP_USERNAME
  30. password: $GOBACKUP_SMTP_PASSWORD
  31. from: $GOBACKUP_SMTP_USERNAME
  32. to: $GOBACKUP_SMTP_USERNAME
  33. dataeasy:
  34. schedule:
  35. cron: "15 1 * * *"
  36. compress_with:
  37. type: tgz
  38. storages:
  39. local:
  40. type: local
  41. keep: 20
  42. path: /etc/gobackup/backup/dataeasy
  43. databases:
  44. my_app:
  45. database: data_easy
  46. type: mysql
  47. host: $GOBACKUP_DATABASE_HOST
  48. port: $GOBACKUP_DATABASE_PORT
  49. username: $GOBACKUP_DATABASE_USERNAME
  50. password: $GOBACKUP_DATABASE_PASSWORD
  51. args: --single-transaction --quick --skip-ssl
  52. notifiers:
  53. mail:
  54. type: mail
  55. host: smtp.qq.com
  56. port: 587
  57. username: $GOBACKUP_SMTP_USERNAME
  58. password: $GOBACKUP_SMTP_PASSWORD
  59. from: $GOBACKUP_SMTP_USERNAME
  60. to: $GOBACKUP_SMTP_USERNAME