add ionice

This commit is contained in:
paul 2017-08-25 20:27:54 +02:00 committed by Hive
parent c4f09a98dc
commit 29cfcf28b7

View file

@ -88,9 +88,9 @@ fi
export RESTIC_PASSWORD=${BACKUP_PASSWORD} export RESTIC_PASSWORD=${BACKUP_PASSWORD}
echo "Backup path: $SNAPSHOTDIR/$BDIR" 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) # 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 ./lock.sh unlock $uuid