From 4d66f86bb04ff5c54a0bab875edfb6cfd1e73c6b Mon Sep 17 00:00:00 2001 From: root Date: Mon, 17 Oct 2011 19:39:13 -0400 Subject: [PATCH] Run backups nicely --- wizbackup-driver | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wizbackup-driver b/wizbackup-driver index 6fbc2fd..e85d41f 100755 --- a/wizbackup-driver +++ b/wizbackup-driver @@ -1,6 +1,6 @@ #!/bin/bash # -# WizBackup Driver 1.0 +# WizBackup Driver 1.1 # Copyright 2011 Bernie Innocenti # # This program is free software: you can redistribute it and/or modify @@ -51,7 +51,8 @@ for host in $HOSTS; do done start_time=$(date +%s) - flock $LOCKDIR/$host wizbackup "$host:/" "$DEST/$host/" $opts >>$LOGFILE 2>&1 + flock -n $LOCKDIR/$host nice ionice -c2 -n6 \ + wizbackup "$host:/" "$DEST/$host/" $opts >>$LOGFILE 2>&1 result=$? end_time=$(date +%s) -- 2.25.1