projects
/
wizbackup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c51718
)
Run backups nicely
author
root
<root@housetree.sugarlabs.org>
Mon, 17 Oct 2011 23:39:13 +0000
(19:39 -0400)
committer
root
<root@housetree.sugarlabs.org>
Mon, 17 Oct 2011 23:39:13 +0000
(19:39 -0400)
wizbackup-driver
patch
|
blob
|
history
diff --git
a/wizbackup-driver
b/wizbackup-driver
index 6fbc2fdd2c257eb393d2668d1e99b104f7729638..e85d41f2f81f3b3b26569d0dee58b71f0ddf03f1 100755
(executable)
--- a/
wizbackup-driver
+++ b/
wizbackup-driver
@@
-1,6
+1,6
@@
#!/bin/bash
#
-# WizBackup Driver 1.
0
+# WizBackup Driver 1.
1
# Copyright 2011 Bernie Innocenti <bernie@codewiz.org>
#
# 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)