Skip to content

Commit

Permalink
Fix backup by using bash instead of shell
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnySc2 committed May 19, 2024
1 parent 474ab42 commit 409f84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/service_rdiff_backup/rdiff_backup_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
- name: Add backups
ansible.builtin.cron:
name: "Run {{ item.name }} backup"
job: /bin/sh '{{ BACKUP_SCRIPT_PATH }}' '{{ item.SOURCE_DIRECTORY }}' '{{ item.TARGET_DIRECTORY }}' '{{ AMOUNT_OF_BACKUPS }}' '{{ BACKUP_PASSWORD }}' >> '{{ secrets.RDIFF_BACKUP.BACKUP_TARGET_PATH }}/{{ item.LOG_NAME }}'
job: /bin/bash '{{ BACKUP_SCRIPT_PATH }}' '{{ item.SOURCE_DIRECTORY }}' '{{ item.TARGET_DIRECTORY }}' '{{ AMOUNT_OF_BACKUPS }}' '{{ BACKUP_PASSWORD }}' >> '{{ secrets.RDIFF_BACKUP.BACKUP_TARGET_PATH }}/{{ item.LOG_NAME }}'
special_time: daily
user: "{{ USERNAME }}"
with_items: "{{ backup_jobs }}"

0 comments on commit 409f84f

Please sign in to comment.