cloud-backup/defaults/main.yml

45 lines
1.1 KiB
YAML
Executable File

---
cloud_apps: /opt
cloud_storage: /opt/storage
cloud_stage: prod
cloud_update: false
backup_owner: backup
backup_group: "{{ backup_owner }}"
backup_owner_ssh_private_key: "ssh-rsa THEREISNOSUCHRSAKEYYET"
backup_owner_ssh_public_key: "ssh-rsa THEREISNOSUCHRSAKEYYET"
backup_location: "/borg"
backup_root: "{{ cloud_storage }}/backup"
backup_run_folder: "{{ cloud_storage }}"
backup_storage_key: "MyStorageKey"
backup_client: true
backup_app: app
backup_cron_specialtime: "daily"
backup_cron_owner: "{{ backup_owner }}"
backup_server_remote_prune_time: 12
backup_script:
prework_backup: |
echo "This is executed before borg backup. Please collect data for backup in path: {{ backup_storage }}"
postwork_restore: |
echo "This is executed after borg restore. Please collect data during restore from path: {{ backup_storage }}"
backup_ssh_port: 22
backup_host: my-borg-repo.tld
backup_clients: []
# app1:
# owner: user1
# app: app1
# borgkey: BorgRepoKey1
# sshpubkey: SshPubKey1
# sshprivkey: SshPrivKey1
# app2:
# owner: user2
# app: app2
# borgkey: BorgRepoKey2
# sshpubkey: SshPubKey2
# sshprivkey: SshPrivKey2