TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rsync and sym-links
I have a directory on my computer that contains links to all my
directories and files that I want to be synronized with on another
computer. I want to have the second computer to use rsync to update my
symlink directory and create all these symlinks and update the files
/ directories that the symlinks point to. (ie ~/links/dirtosync/ is a
link to ~/dirtosycn and ~/links/filetosync is a link to ~/filetosync
I run on the computer to get synced:
rsync -avz pclueyb.res.carleton.edu:~/negsync/ -e ssh ~/links -pogu -lr
to get all the symlinks setup, under ~/links
if I then run
rsync -avz pclueyb.res.carleton.edu:~/negsync/ -e ssh ~/links -pogu
--copy-unsafe-links -l -L
it updates the symlinks, but not the files they are linked it (no
updating)
if I do
rsync -avz pclueyb.res.carleton.edu:~/negsync/ -e ssh ~/links -pogu
--copy-unsafe-links -L
it works perfectly on directories, but on files it replaces the link with
the actual file in ~/links dir.
How can I get rsync to follow the symlinks on both directories and files?
Thanks,
Ben
Ben Luey
lueyb@carleton.edu
ICQ: 19144397
The world will not evolve past its current state of crisis by using the same
thinking that created the situation.
-- Albert Einstein