diff options
Diffstat (limited to 'roles/proxmox/pve_backup')
-rw-r--r-- | roles/proxmox/pve_backup/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/proxmox/pve_backup/tasks/main.yml b/roles/proxmox/pve_backup/tasks/main.yml new file mode 100644 index 0000000..eba51d9 --- /dev/null +++ b/roles/proxmox/pve_backup/tasks/main.yml | |||
@@ -0,0 +1,17 @@ | |||
1 | - name: create cron job for root backup of proxmox ve | ||
2 | cron: | ||
3 | name: "proxmox / backup" | ||
4 | cron_file: backup | ||
5 | hour: "23" | ||
6 | minute: "0" | ||
7 | user: root | ||
8 | job: "PBS_PASSWORD='{{ pbs_password }}' PBS_FINGERPRINT={{ pbs_fingerprint }} proxmox-backup-client backup root.pxar:/ --repository {{ pbs_user }}@{{ pbs_host }}:{{ pbs_datastore }}" | ||
9 | |||
10 | - name: create cron job for /etc/pve backup of proxmox ve | ||
11 | cron: | ||
12 | name: "proxmox /etc/pve backup" | ||
13 | cron_file: backup | ||
14 | hour: "23" | ||
15 | minute: "0" | ||
16 | user: root | ||
17 | job: "PBS_PASSWORD='{{ pbs_password }}' PBS_FINGERPRINT={{ pbs_fingerprint }} proxmox-backup-client backup pve.pxar:/etc/pve --repository {{ pbs_user }}@{{ pbs_host }}:{{ pbs_datastore }}" | ||