Template für Backupskript
This commit is contained in:
12
restic-backup.sh
Normal file
12
restic-backup.sh
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user