From 95b73daa36b23565a8566f71f9b202d3459b685f Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 25 Jun 2023 09:52:36 -0400 Subject: Initial Commit --- roles/proxmox/pve_backup/tasks/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 roles/proxmox/pve_backup/tasks/main.yml (limited to 'roles/proxmox/pve_backup/tasks') 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 @@ +- name: create cron job for root backup of proxmox ve + cron: + name: "proxmox / backup" + cron_file: backup + hour: "23" + minute: "0" + user: root + job: "PBS_PASSWORD='{{ pbs_password }}' PBS_FINGERPRINT={{ pbs_fingerprint }} proxmox-backup-client backup root.pxar:/ --repository {{ pbs_user }}@{{ pbs_host }}:{{ pbs_datastore }}" + +- name: create cron job for /etc/pve backup of proxmox ve + cron: + name: "proxmox /etc/pve backup" + cron_file: backup + hour: "23" + minute: "0" + user: root + job: "PBS_PASSWORD='{{ pbs_password }}' PBS_FINGERPRINT={{ pbs_fingerprint }} proxmox-backup-client backup pve.pxar:/etc/pve --repository {{ pbs_user }}@{{ pbs_host }}:{{ pbs_datastore }}" -- cgit v1.2.3