common.yaml 714 B

12345678910111213141516171819202122232425262728293031
  1. repositories:
  2. - path: ssh://${STORAGE_BOX_USER}@${STORAGE_BOX_USER}.your-storagebox.de:23/./borg-repo
  3. label: hetzner
  4. remote_path: borg-1.4
  5. ssh_command: ssh -i ~/.ssh/${SSH_KEY_NAME}
  6. encryption_passphrase: "{credential file /credentials/borg_passphrase}"
  7. compression: lz4
  8. archive_name_format: 'backup-{hostname}-{now}'
  9. checks:
  10. - name: repository
  11. frequency: 2 weeks
  12. - name: archives
  13. frequency: always
  14. - name: extract
  15. frequency: 2 weeks
  16. - name: data
  17. frequency: 1 month
  18. commands:
  19. - before: everything
  20. run:
  21. - echo "Starting a backup job."
  22. - after: everything
  23. run:
  24. - echo "Backup created."
  25. - after: error
  26. run:
  27. - echo "Error while creating a backup."