aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2007-01-22 21:35:52 +0000
committerElijah Saxon <elijah@riseup.net>2007-01-22 21:35:52 +0000
commit5621db48e9a9319860d790ef06ad2d05f74eb0ac (patch)
treef00c5e3aed173efb79db2b696af870ca1f1b4d52
parent5ab8f588cbaf69b86ce41e8de5dc52251a8e00c7 (diff)
downloadbackupninja-5621db48e9a9319860d790ef06ad2d05f74eb0ac.tar.gz
backupninja-5621db48e9a9319860d790ef06ad2d05f74eb0ac.tar.bz2
made source directory not found into warning instead of fatal
-rw-r--r--handlers/maildir5
1 files changed, 4 insertions, 1 deletions
diff --git a/handlers/maildir b/handlers/maildir
index b7c9b3e..49b2542 100644
--- a/handlers/maildir
+++ b/handlers/maildir
@@ -78,7 +78,10 @@ function do_user() {
local letter=${user:0:1}
local source="$srcdir/$letter/$user/"
local target="$destdir/$letter/$user/$btype.1"
- [ -d $source ] || fatal "maildir $source not found".
+ if [ ! -d $source ]; then
+ warning "maildir $source not found"
+ return
+ fi
debug "syncing"
ret=`$RSYNC -e "ssh -p $destport" -r \