mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2026-06-26 19:51:03 +02:00
Remove quiet mode from restic backup commands
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user