From 29cfcf28b7c9506e1577772981aa6ae2f95908a1 Mon Sep 17 00:00:00 2001 From: Paul Scheunemann Date: Fri, 25 Aug 2017 20:27:54 +0200 Subject: [PATCH] add ionice --- backupscript.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backupscript.sh b/backupscript.sh index f0b99a3..82cbf5e 100755 --- a/backupscript.sh +++ b/backupscript.sh @@ -88,9 +88,9 @@ fi export RESTIC_PASSWORD=${BACKUP_PASSWORD} echo "Backup path: $SNAPSHOTDIR/$BDIR" -# backup the snapshot +# backup the snapshot (without freezing the filesystem) # use -q for quiet mode (when run as a cron job) -$RESTIC --repo $URI $EXCLUDE $QUIET backup $SNAPSHOTDIR/$BDIR +ionice -c 3 $RESTIC --repo $URI $EXCLUDE $QUIET backup $SNAPSHOTDIR/$BDIR ./lock.sh unlock $uuid