feature request: rsync dereference symlinks on cmdline

Ken Chase rsync-list-m829 at sizone.org
Fri May 15 11:16:17 MDT 2015


This post

http://unix.stackexchange.com/questions/153262/get-rsync-to-dereference-symlinked-dirs-presented-on-cmdline-like-find-h

explains most of what i want, but basically, looking for a find -H option to rsync.

Reason is so that I can hit a source (or target!) dir in rsync by making a nice
dir of symlink maps.

For eg openVZ names their containers with ID#s which isnt very condusive to
careful handling/recognition:

100/ 101/ 102/ 103/ 

etc

Id like to create a dir of symlinks, a map (I think this would work on the 
target too?)

customer1 -> ../production/100
customer2 -> ../production/101
customer3 -> ../production/102

and have rsync write dirs

customer1/ customer2/ customer3/ 

in the target.

Obviously I could do this by iterating over the source's 100 101 102 adnd
point at custom target names, etc, but that gets tedious and requires manually
updating the script to get any new sources that are added.

Obviously I dont want --copy-links, as I want only those links mentioned on
the command line to be dereferenced, not those inside the tree.

/kc
-- 
Ken Chase - Toronto Canada
Heavy Computing - Clued bandwidth, colocation and managed linux VPS @151 Front St. W.


More information about the rsync mailing list