Preperations for a version without pax
This commit is contained in:
parent
bb7dd035b5
commit
2060baa71a
3 changed files with 8 additions and 4 deletions
2
TODO
2
TODO
|
@ -1,3 +1,5 @@
|
||||||
|
12:25 [lugs] -!- papo [~mathias@192.168.14.164]
|
||||||
|
12:25 [lugs] -!- ircname : Mathias Weyland
|
||||||
11:39 <~papo> was is der Unterschied zu rsync -a --delete
|
11:39 <~papo> was is der Unterschied zu rsync -a --delete
|
||||||
--link-dest=$snapshot/$lastdate /home/ $snapshot/$curdate
|
--link-dest=$snapshot/$lastdate /home/ $snapshot/$curdate
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
|
@ -14,7 +14,7 @@ CPREEXEC="$CDEFAULTS/pre_exec"
|
||||||
CPOSTEXEC="$CDEFAULTS/post_exec"
|
CPOSTEXEC="$CDEFAULTS/post_exec"
|
||||||
|
|
||||||
TMP=$(mktemp /tmp/$(basename $0).XXXXXX)
|
TMP=$(mktemp /tmp/$(basename $0).XXXXXX)
|
||||||
VERSION=0.4.3
|
VERSION=0.5
|
||||||
RELEASE="2006-XX-XX"
|
RELEASE="2006-XX-XX"
|
||||||
HALF_VERSION="ccollect $VERSION"
|
HALF_VERSION="ccollect $VERSION"
|
||||||
FULL_VERSION="ccollect $VERSION ($RELEASE)"
|
FULL_VERSION="ccollect $VERSION ($RELEASE)"
|
||||||
|
@ -386,8 +386,9 @@ while [ "$i" -lt "$no_sources" ]; do
|
||||||
# only copy if a directory exists
|
# only copy if a directory exists
|
||||||
if [ "$last_dir" ]; then
|
if [ "$last_dir" ]; then
|
||||||
echo "$($DDATE) Hard linking..."
|
echo "$($DDATE) Hard linking..."
|
||||||
cd "$last_dir"
|
#cd "$last_dir"
|
||||||
pax -rwl -p e $VVERBOSE . "$abs_destination_dir"
|
#pax -rwl -p e $VVERBOSE . "$abs_destination_dir"
|
||||||
|
rsync_hardlink="--link-dest=\"$last_dir\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -404,6 +405,7 @@ while [ "$i" -lt "$no_sources" ]; do
|
||||||
echo "$($DDATE) Transferring files..."
|
echo "$($DDATE) Transferring files..."
|
||||||
|
|
||||||
rsync -a --delete --numeric-ids --relative --delete-excluded \
|
rsync -a --delete --numeric-ids --relative --delete-excluded \
|
||||||
|
$rsync_hardlink \
|
||||||
$VERBOSE $EXCLUDE $SUMMARY $RSYNC_EXTRA \
|
$VERBOSE $EXCLUDE $SUMMARY $RSYNC_EXTRA \
|
||||||
"$source" "$abs_destination_dir"
|
"$source" "$abs_destination_dir"
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
/home/nico/bilder
|
/home/user/nico/test2
|
||||||
|
|
Loading…
Reference in a new issue