public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Symlinked directories and rsync
@ 2017-08-19  4:56 Walter Dnes
  2017-08-19  5:33 ` John Covici
  0 siblings, 1 reply; 6+ messages in thread
From: Walter Dnes @ 2017-08-19  4:56 UTC (permalink / raw
  To: Gentoo Users List

  I've RTFM'd, and it looks like there is no way to get rsync to copy
over symlinked directories as symlinks.  E.g. I build Pale Moon browser
from source for 3 machines at home.  I prefer downloading the source
once and symlinking to it from 3 different working directories.  I also
have a personal project where I analyze the same text data files in 3
different ways.  It makes things so much simpler to use the same code,
with different runtime parameters.  So I symlink the main data directory
to 3 working directories.  Even "better" (or worse) I've got a situation
where I symlink directories to... other symlinked directories.  Yes;
symlinks pointing to symlinks work, even for directories.

  Unfortunately, rsync will not create a symlink where appropriate, but
will de-reference the symlink, and duplicate multiple gigabytes of data
needlessly.  I eventually gave up trying, and made a tarball, and pushed
it over to my "hot backup" machine, and extracted it there.  That works
OK for the initial setup, but is painfull for "minor incremental"
updates.

  Am I missing something glaringly obvious, or is this a limitation of
rsync?  If so, is there another tool that can copy over symlinked
directories properly?

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-25  6:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-19  4:56 [gentoo-user] Symlinked directories and rsync Walter Dnes
2017-08-19  5:33 ` John Covici
2017-08-19  8:59   ` Mick
2017-08-19 16:41     ` [gentoo-user] " Ian Zimmerman
2017-08-25  6:31       ` Ian Zimmerman
2017-08-20  3:10     ` [gentoo-user] " Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox