mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Added documentation on docker restart argument (#191)
Co-authored-by: Igor Wolbers <igor@sparcobv.onmicrosoft.com>
This commit is contained in:
13
README.md
13
README.md
@@ -361,6 +361,19 @@ To check the status of the service use this command.
|
||||
sudo systemctl status protectbackup.service --no-pager
|
||||
```
|
||||
|
||||
# Running Backup Tool as a Service (Docker ONLY)
|
||||
If you are using Docker you can pass the flag to start the container automatically after a power cycle / reboot. The `restart` argument can be passed with the `unless-stopped` or `always` argument. See the Docker documentation, [Start containers automatically](https://docs.docker.com/engine/containers/start-containers-automatically/), for more information. This can be done in any environment, not just in Linux. If this is used then *do not* also configure this as a service as described in section "Running Backup Tool as a Service (LINUX ONLY)"
|
||||
|
||||
## Example
|
||||
```
|
||||
docker run \
|
||||
-e UFP_USERNAME='USERNAME' \
|
||||
-e UFP_PASSWORD='PASSWORD' \
|
||||
# ... other flags and arguments ...
|
||||
--restart unless-stopped
|
||||
ghcr.io/ep1cman/unifi-protect-backup
|
||||
```
|
||||
|
||||
# Debugging
|
||||
|
||||
If you need to debug your rclone setup, you can invoke rclone directly like so:
|
||||
|
||||
Reference in New Issue
Block a user