| 123456789101112131415161718192021222324252627282930313233343536373839 |
- source_directories:
- - /mnt/source/
- repositories:
- - path: ssh://${STORAGE_BOX_USER}@${STORAGE_BOX_MAIN_USER}.your-storagebox.de:23/./borg-repo
- one_file_system: true
- remote_path: borg-1.4
- ssh_command: ssh -i ~/.ssh/${SSH_KEY_NAME}
- encryption_passphrase: "{credential file /credentials/borg_passphrase}"
- compression: lz4
- archive_name_format: 'backup-{hostname}-{now}'
- keep_hourly: 10
- keep_daily: 7
- keep_weekly: 4
- keep_monthly: 12
- keep_yearly: 10
- checks:
- - name: repository
- frequency: 2 weeks
- - name: archives
- frequency: always
- - name: extract
- frequency: 2 weeks
- - name: data
- frequency: 1 month
- commands:
- - before: everything
- run:
- - echo "Starting a backup job."
- - after: everything
- run:
- - echo "Backup created."
- - after: error
- run:
- - echo "Error while creating a backup."
|