From: root Date: Mon, 17 Oct 2011 23:39:13 +0000 (-0400) Subject: Run backups nicely X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=4d66f86bb04ff5c54a0bab875edfb6cfd1e73c6b;p=wizbackup.git Run backups nicely --- 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)