Simplified docs on creating rclone config

This commit is contained in:
Sebastian Goscik
2022-02-21 12:30:59 +00:00
parent b2d041ff09
commit e3025e1611

View File

@@ -119,20 +119,14 @@ docker run \
-e UFP_ADDRESS='UNIFI_PROTECT_IP' \
-e UFP_SSL_VERIFY='false' \
-e RCLONE_DESTINATION='my_remote:/unifi_protect_backup' \
-v '/path/to/dir/containing/rclone.conf/on/host':'/root/.config/rclone/' \
-v '/path/to/rclone.conf':'/root/.config/rclone/rclone.conf' \
ghcr.io/ep1cman/unifi-protect-backup
```
The container expects a `rclone.conf` file to be inside the configuration directory.
If you do not already have a `rclone.conf` file you can create one as follows:
```
$ docker run -it --rm ghcr.io/ep1cman/unifi-protect-backup /bin/sh
/app # rclone config
(Setup your rclone remote, see here for documentation: https://rclone.org/docs/#configure)
/app # cat $(rclone config file | sed -n 2p)
/app # exit
$ docker run -it --rm -v $PWD:/root/.config/rclone/ ghcr.io/ep1cman/unifi-protect-backup rclone config
```
This should print out the contents of the newly configured `rclone.conf` file which you
can now copy & paste into a file on your host system
This will create a `rclone.conf` file in your current directory
## Credits