Remove quiet mode from restic backup commands

This commit is contained in:
2026-06-24 20:54:52 +02:00
committed by GitHub
parent 1ebe65fc80
commit 8e1dee24d4
+3 -3
View File
@@ -7,7 +7,7 @@ function backup_dir {
echo "[ERROR] Cannot backup the root directory. Have you correctly configured the volumes to backup for this container ?"
return -1
elif [ -d "/root_fs$1" ]; then
restic backup -q $RESTIC_BACKUP_FLAGS /root_fs$1
restic backup $RESTIC_BACKUP_FLAGS /root_fs$1
return $?
else
echo "[ERROR] Directory $1 not found. Have you mounted the root fs from your host with the following option : '-v /:/root_fs:ro' ?"
@@ -21,7 +21,7 @@ function backup_local_dir {
echo "[ERROR] Cannot backup the root directory. Have you correctly configured the volumes to backup for this container ?"
return -1
elif [ -d "$1" ]; then
restic backup -q $RESTIC_BACKUP_FLAGS $1
restic backup $RESTIC_BACKUP_FLAGS $1
return $?
else
echo "[ERROR] Directory $1 not found."
@@ -156,6 +156,6 @@ if [ "$1" == "" ] || [ "$1" == "backup" ]; then
exit -1
fi
elif [ "$1" == "maintenance" ] ; then
restic forget -q --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --keep-yearly 2 --prune && restic prune -q
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 12 --keep-yearly 2 --prune && restic prune
fi