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

I did, but it does one of two things (with the --copy-unsafe-links flag):
if the symlinks link to files that don't exist, then it overrides the link
with the actual file. If the symlink goes to a real file, it doesn't
updated the file (the link is the same?) , but it works fine for
directories. hmmm

Thanks,


Ben



> 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
> > 
> 
> 
> ---------------------------------------------------------------------
> 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
> 

Ben Luey
lueyb@carleton.edu
ICQ: 19144397

I am thankful for: Jake "The Body" Ventura, a plain-talking breath of fresh
air who will provide no end of inspiration and entertainment for those of us
who don't fall under his actual purview of governance.    -- Joan Ryan