💄: resort to manual cron for truenas

This commit is contained in:
VC
2024-10-20 08:35:32 +02:00
parent 73e2c209e0
commit c01a6a0503
3 changed files with 6 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ restic_path: "/mnt/tank/restic/restic"
restic_script_path: "/mnt/tank/restic/resticbackup.sh" restic_script_path: "/mnt/tank/restic/resticbackup.sh"
restic_cache_dir: "/mnt/tank/restic/cache" restic_cache_dir: "/mnt/tank/restic/cache"
restic_external_scheduler: true
restic_backup_path: restic_backup_path:
- /mnt/tank - /mnt/tank
restic_backup_excluded_path: restic_backup_excluded_path:

View File

@@ -3,6 +3,9 @@ restic_path: "/usr/local/bin/restic"
restic_script_path: "/usr/local/bin/resticbackup.sh" restic_script_path: "/usr/local/bin/resticbackup.sh"
restic_cache_dir: "" restic_cache_dir: ""
# use in cases when cron is not available
restic_external_scheduler: false
restic_pass: !vault | restic_pass: !vault |
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
62333166623737363731663766353330633335306532306366356536376232396664376430613434 62333166623737363731663766353330633335306532306366356536376232396664376430613434

View File

@@ -17,6 +17,7 @@
hour: "{{ restic_backup_hour }}" hour: "{{ restic_backup_hour }}"
minute: "{{ restic_backup_minute }}" minute: "{{ restic_backup_minute }}"
job: "{{ restic_script_path }}" job: "{{ restic_script_path }}"
when: restic_external_scheduler is false
- name: Init restic - name: Init restic
ansible.builtin.command: ansible.builtin.command: