www.nico.schottelius.org/software/ccollect/download/ccollect-0.8/contrib/jlawless-2009-06-03/old/a.patch
Nico Schottelius 851d24074e add related plus support
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2010-04-08 22:33:02 +02:00

15 lines
555 B
Diff

--- ccollect-0.7.1.sh 2009-02-02 03:39:42.000000000 -0800
+++ ccollect-0.7.1-a.sh 2009-05-24 21:30:38.000000000 -0700
@@ -364,10 +364,12 @@
source=$(cat "${c_source}"); ret="$?"
if [ "${ret}" -ne 0 ]; then
_exit_err "Source ${c_source} is not readable. Skipping."
fi
fi
+ # Verify source is up and accepting connections before deleting any old backups
+ rsync "$source" >/dev/null || _exit_err "Source ${source} is not readable. Skipping."
#
# Destination is a path
#
if [ ! -f "${c_dest}" ]; then