TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:6229] rsync and sym-links
try the -L switch
Thank You,
Ben Kochie (ben@nerp.net)
*-----------------------* [ - * - * - * - * - * - * - * - ]
| Unix/Linux Consulting | [ Haiku Error Message: ]
| PC/Mac Repair | [ Chaos reigns within. ]
| Networking | [ Reflect, repent, and reboot. ]
| http://nerp.net | [ Order shall return. ]
*-----------------------* [ - * - * - * - * - * - * - * - ]
"Unix is user friendly, Its just picky about its friends."
On Tue, 1 Jun 1999, Ben Luey wrote:
> 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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
>