12 lines
243 B
Bash
Executable file
12 lines
243 B
Bash
Executable file
#!/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
|