projects
/
public
/
mirror.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e688cfc
)
Write error message on error
author
David Bartley
<dtbartle@csclub.uwaterloo.ca>
Fri, 18 Apr 2008 23:36:27 +0000
(19:36 -0400)
committer
David Bartley
<dtbartle@csclub.uwaterloo.ca>
Fri, 18 Apr 2008 23:36:27 +0000
(19:36 -0400)
csc-sync-standard
patch
|
blob
|
history
diff --git
a/csc-sync-standard
b/csc-sync-standard
index
1b493b8
..
5385acd
100755
(executable)
--- a/
csc-sync-standard
+++ b/
csc-sync-standard
@@
-102,6
+102,10
@@
rsync --recursive --links --hard-links --times --verbose --delay-updates --delet
--exclude "Archive-Update-in-Progress-${HOSTNAME}" \
--address=$ADDRESS $TMP_EXCLUDE \
$RSYNC_HOST::$RSYNC_DIR $TO >> $LOGFILE 2>&1
+if [[ "$?" != "0" ]]; then
+ echo "ERROR: Help, something weird happened" | tee -a $LOGFILE
+ echo "mirroring /pool exited with exitcode" $result | tee -a $LOGFILE
+fi
savelog $LOGFILE >/dev/null