Cosmetic changase

This commit is contained in:
Nico Schottelius 2007-01-17 18:45:13 +01:00
parent 2db6d79735
commit 44c80899fe
2 changed files with 13 additions and 2 deletions

3
TODO
View file

@ -8,7 +8,10 @@ Anhaengen von der -F / --filter Doku von Killerfox
1.2. replace sed?
compare timing:
_echo () { echo "$name $msg" }
and create
_techo () { echo "$timestamp $name $msg" }
perhaps create
_eecho () { _techo "ERROR $msg" }
--------------------------------------------------------------------------------
2. clonen von anderen existierenden backups?
--------------------------------------------------------------------------------

View file

@ -330,7 +330,7 @@ while [ "$i" -lt "$no_sources" ]; do
# destination _must_ be a directory
#
if [ ! -d "$c_dest" ]; then
echo "Destination $c_dest does not link to a directory. Skipping"
echo "Destination $c_dest neither links to nor is a directory. Skipping."
exit 1
fi
@ -338,6 +338,8 @@ while [ "$i" -lt "$no_sources" ]; do
# exclude list
#
if [ -f "$c_exclude" ]; then
# FIXME: check how quoting at the end looks like
# perhaps our source contains spaces!
EXCLUDE="--exclude-from=$c_exclude"
fi
@ -449,6 +451,11 @@ while [ "$i" -lt "$no_sources" ]; do
echo "$($DDATE) Transferring files..."
ouropts="-a --delete --numeric-ids --relative --delete-excluded"
#
# FIXME: check, whether this is broken with spaces...
# most likely it should be broken...
#
useropts="$VERBOSE $EXCLUDE $SUMMARY $RSYNC_EXTRA"
# Clone from previous backup, if existing
@ -458,9 +465,10 @@ while [ "$i" -lt "$no_sources" ]; do
# This directory MUST be absolute, because rsync does chdir()
# before beginning backup!
#
abs_last_dir="$(cd "$last_dir" && pwd -P)"
if [ -z "$abs_last_dir" ]; then
echo "Changing to the last backup directory failed. I skip this backup."
echo "Changing to the last backup directory failed. Skipping."
exit 1
fi