summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fe9776f)
ignore rsync error code 24
ignore cp return code.
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@85
758a04ac-41e6-0310-8a23-
8373a73cc35d
--exclude '.Trash/*' --exclude '.Mistakes/*' --exclude '.Spam/*' \
$dir $destuser@$desthost:$destdir/$letter \
2>&1`
--exclude '.Trash/*' --exclude '.Mistakes/*' --exclude '.Spam/*' \
$dir $destuser@$desthost:$destdir/$letter \
2>&1`
+ ret=$?
+ # ignore 0 (success) and 24 (file vanished before it could be copied)
+ if [ $ret != 0 -a $ret != 24 ]; then
warning "rsync $user failed"
warning " returned: $ret"
let "failedcount = failedcount + 1"
warning "rsync $user failed"
warning " returned: $ret"
let "failedcount = failedcount + 1"
fi
if [ -d $destdir/$backuptype.2 ]; then
echo "Info: updating hard links to $dir.1. This may take a while."
fi
if [ -d $destdir/$backuptype.2 ]; then
echo "Info: updating hard links to $dir.1. This may take a while."
- cp -al $destdir/$backuptype.2/. $dir.1
- if [ \$? == 1 ]; then
- echo "Fatal: could not create hard links to $dir.1 on host $desthost"
- exit 1
- fi
+ cp -alf $destdir/$backuptype.2/. $dir.1
+ #if [ \$? == 1 ]; then
+ # echo "Fatal: could not create hard links to $dir.1 on host $desthost"
+ # exit 1
+ #fi
fi
fi
[ -f $dir.1/created ] && rm $dir.1/created
fi
fi
[ -f $dir.1/created ] && rm $dir.1/created