Replace docker rclone volumes with native cifs volumes
This commit is contained in:
parent
85568c8278
commit
635a0c4da8
12 changed files with 19 additions and 106 deletions
|
|
@ -1,12 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
backup_path="$1"
|
||||
stage="$2"
|
||||
|
||||
if [ "$stage" == "before" ]; then
|
||||
rclone mount --config /opt/services/backup/rclone.conf --daemon immich_upload: "$backup_path"
|
||||
fi
|
||||
|
||||
if [ "$stage" == "after" ]; then
|
||||
unmount "$backup_path"
|
||||
fi
|
||||
|
|
@ -25,12 +25,6 @@
|
|||
content: '{{ backup_yml_all | to_nice_yaml }}'
|
||||
mode: "0644"
|
||||
|
||||
- name: Create rclone.conf
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ (service_path, 'rclone.conf') | path_join }}"
|
||||
content: '{{ vault_backup.rclone }}'
|
||||
mode: "0600"
|
||||
|
||||
- name: Import tasks specific to the hooks scripts
|
||||
ansible.builtin.import_tasks: hooks.yml
|
||||
- name: Import tasks specific to the recovery scripts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue