diff --git a/restic-backup.sh b/restic-backup.sh new file mode 100644 index 0000000..01bb939 --- /dev/null +++ b/restic-backup.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# Alle Container-IDs abrufen +container_ids=$(docker ps -q) +docker stop $container_ids +source .restic-env +restic backup -q --tag daily --exclude-file=/home/stefan/exclude-file.txt /home/stefan/ +restic backup -q --tag daily /etc +restic forget -q --keep-last 14 --prune +docker start $container_ids + +# Muster für Restic-Backup Skript +# muss im /root Ordner liegen \ No newline at end of file