mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
21 lines
718 B
Bash
21 lines
718 B
Bash
|
#!/bin/sh
|
||
|
CONTAINER=rclone
|
||
|
|
||
|
if podman container exists "$CONTAINER"; then
|
||
|
podman start "$CONTAINER"
|
||
|
else
|
||
|
podman run -i -d --rm \
|
||
|
--net=host \
|
||
|
-v /mnt/data/rclone:/data/backups/rclone \
|
||
|
-v /mnt/data/pihole:/data/backups/pihole \
|
||
|
-v /mnt/data/on_boot.d:/data/backups/on_boot.d \
|
||
|
-v /data/unifi/data/backup/autobackup:/data/backups//data/unifi/data/backup/autobackup \
|
||
|
-v /mnt/data/podman/cni:/data/backups/podman/cni \
|
||
|
-v /mnt/data/rclone:/config/rclone \
|
||
|
-v /mnt/data/rclone/sync.sh:/data/sync.sh \
|
||
|
--name "$CONTAINER" \
|
||
|
--security-opt=no-new-privileges \
|
||
|
rclone/rclone:latest \
|
||
|
rcd --rc-web-gui --rc-addr :5572 \
|
||
|
--rc-user rclone --rc-pass randompassword12345
|
||
|
fi
|