2021-12-06 17:20:06 +01:00
|
|
|
# 🐳 Docker
|
|
|
|
|
|
|
|
The docker image is build with rclone and restic already included. It's ment more as a utility image.
|
|
|
|
|
|
|
|
## Remote hosts
|
|
|
|
|
|
|
|
For remote backups (S3, B2, GCS, etc.) it's quite easy, as you only need to mount the config file and the data to backup.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker run --rm \\
|
|
|
|
-v $(pwd):/data \\
|
|
|
|
cupcakearmy/autorestic \\
|
2022-02-09 09:07:01 +01:00
|
|
|
autorestic backup -va -c /data/.autorestic.yaml
|
2021-12-06 17:20:06 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Rclone
|
|
|
|
|
|
|
|
For rclone you will have to also mount the rclone config file to `/root/.config/rclone/rclone.conf`.
|
|
|
|
|
|
|
|
To check where it is located you can run the following command: `rclone config file`.
|
|
|
|
|
|
|
|
**Example**
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker run \\
|
|
|
|
-v /home/user/.config/rclone/rclone.conf:/root/.config/rclone/rclone.conf:ro \\
|
|
|
|
...
|
|
|
|
```
|