Hi Gurus,
I've been searching for quite sometime but can't find the right answer for this.
I need to rsync symbolic files from sender -> receiver without replacing the receiver's existing symbolic files and still copy sender's symbolic files.
ex:
sender's /var/tmp/a contains:
lrwxrwxrwx 1 root root 9 Apr 6 20:09 3 -> /dev/null
lrwxrwxrwx 1 root root 21 Apr 6 22:36 4 -> /home/jake
receiver's /var/tmp/b contains:
lrwxrwxrwx 1 root root 21 Apr 8 03:43 3 -> /home/developers/jake
I have tried --ignore-existing and other switches but to no avail, maybe someone here may give light to me.
here is an output of my dry run:
rsync -anrz --exclude=' /home/developers/jake' --progress --ignore-existing /var/tmp/a/ /var/tmp/b/
building file list ...
4 files to consider
./
3 -> /dev/null
4 -> /home/developers/jake
as you can see /var/tmp/a/3 still replaces /var/tmp/b/3
my goal is to copy /var/tmp/a/4 and not replace /var/tmp/b/3
anyone?
thanks
edit by bakunin: please use code-tags for output (and pieces of code, of course). These parts will not only be formatted differently, but also be exempted from translation attempts by our rudimentary foreign-language tools. Thank you.