Mailing List Archive

rsync, directories and symlinks
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Gentooers,
I created the following procedure for sharing data between my desktop and my
notebook.
in my desktop I have a directory ~/notebook/ which is to be synced with my
notebook ~/. So, I get a full backup of my notebook's data into my desktop,
but I also can drop files into ~/notebook when I want them there. But, what I
want to do, since I have a whole hierarchy in my home directory, is make
symlinks from desktop ~/notebook/ to somewhere else on desktop ~/. So, when I
sync to the notebook, this files are copied to the notebook (althoug they are
not really in desktop ~/notebook). The problem is that on the notebook they
are REAL directories and files, when I sync back to my workstation, it
overwrites the symlinks creating directories in desktop ~/notebook instead of
putting the files INSIDE the symlinks.
Any idea how can I solve this problem ?
Thank you.
- --
Pupeno: pupeno@pupeno.com - http://www.pupeno.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBfFXefW48a9PWGkURArKXAKCT+G1mMSxqxZPF2ZC+aQrrA8lJFACggfjO
BeVZJeTL/quJ1ALwUKejjro=
=lHyR
-----END PGP SIGNATURE-----

--
gentoo-user@gentoo.org mailing list
Re: rsync, directories and symlinks [ In reply to ]
On Sun, 24 Oct 2004 22:24:43 -0300, Pupeno wrote:

> The problem is that on the notebook they
> are REAL directories and files, when I sync back to my workstation, it
> overwrites the symlinks creating directories in desktop ~/notebook
> instead of putting the files INSIDE the symlinks.

You probably need the --copy-links option. man rsync will tell you more.

Alternatively, you could use Unison to keep the two computers
synchronised, it uses some rsync code, but offers a lot more besides.


--
Neil Bothwick

All right, set phasers to deep fat fry!
Re: rsync, directories and symlinks [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Je Lundo Oktobro 25 2004 08:51, Neil Bothwick skribis:
> On Sun, 24 Oct 2004 22:24:43 -0300, Pupeno wrote:
> > The problem is that on the notebook they
> > are REAL directories and files, when I sync back to my workstation, it
> > overwrites the symlinks creating directories in desktop ~/notebook
> > instead of putting the files INSIDE the symlinks.
>
> You probably need the --copy-links option. man rsync will tell you more.
I'm already using: --copy-unsafe-links

> Alternatively, you could use Unison to keep the two computers
> synchronised, it uses some rsync code, but offers a lot more besides.
I'll take a look at it.
- --
Pupeno: pupeno@pupeno.com - http://www.pupeno.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBfWe9fW48a9PWGkURAqgHAJ9a93DOmF9Qc6P9gzED/VfE+UAa6wCghpfG
/rmNGLhJEEQsVpOMuvCWPiQ=
=gzcA
-----END PGP SIGNATURE-----

--
gentoo-user@gentoo.org mailing list