Displaying 1 result from an estimated 1 matches for "rsyncflag".
Did you mean:
asyncflag
2003 Jan 07
1
Bug or feature? --delete-after + symlinks
...any tips.
thanks!
- Judah Milgram
milgram@cgpp.com
#!/bin/bash
#
# 1. rename a directory.
# 2. create symlink with old dir's name.
# 3. update mirror
#
RSYNC=/usr/bin/rsync
uname -msrp
ldd $RSYNC
$RSYNC --version
# This seems to trigger error with rsync version 2.5.5 protocol version 26
RSYNCFLAGS="-av --delete-after"
# This seems OK
# RSYNCFLAGS="-av"
# set up source directory
echo
mkdir a
mkdir a/b
touch a/b/foo
find a
# mirror to target
echo
$RSYNC $RSYNCFLAGS a a_mirror
find a a_mirror
# Now do some reorganization in source dir:
echo
cd a
mv -v b b.1
ln -sv b....