gobackup.yml 820 B

1234567891011121314151617181920212223242526272829303132
  1. web:
  2. username: $GOBACKUP_WEB_USERNAME
  3. password: $GOBACKUP_WEB_PASSWORD
  4. models:
  5. punch-settle:
  6. schedule:
  7. cron: "0 1 * * *"
  8. compress_with:
  9. type: tgz
  10. storages:
  11. local:
  12. type: local
  13. keep: 20
  14. path: /etc/gobackup/backup
  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