12 lines
275 B
Bash
12 lines
275 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
docker build -t backup . --network=host
|
||
|
docker run \
|
||
|
--env-file=./backup.env \
|
||
|
-v /tmp/test/:/mnt/backup/ \
|
||
|
-v /tmp/test/restic-exclude.txt:/mnt/restic-exclude \
|
||
|
-v /tmp/test/rclone.conf:/mnt/rclone.conf \
|
||
|
-v /tmp/logs/:/mnt/logs/ \
|
||
|
--network=host \
|
||
|
backup
|