syncing several directories ?

16 views
Skip to first unread message

Jens-Peter

unread,
Oct 21, 2011, 6:34:04 AM10/21/11
to project-lipsync
Hi,

I'd like to sync two directories between three sites.

My first idea was to start lipsync several times with different config
files. The next idea would be to sync one directory, that contains
symbolic links to the "real" directories.

Do you have a recommendation?

Jens-Peter

Jens-Peter

unread,
Oct 21, 2011, 9:57:08 AM10/21/11
to project-lipsync
Well, symbolic links are getting synced "as is", meaning I only get
the link on the other side...


Any ideas on how to preserve ownership of files?

tia,
Jens-Peter

Conor Schaefer

unread,
Oct 21, 2011, 12:52:55 PM10/21/11
to project...@googlegroups.com
rsync allows for treating symlinks as directories; I believe you want the -K flag ("keep") for that. Check the man page here: http://man.cx/rsync (although on your system is best).

Ownership should be preserved with default lipsync setup, provided there are identical usernames on both machines. The -a flag sandwiches together a whole bunch of flags ("equivalent to −rlptgoD" says the man page), which is helpful in a pinch, but may not be perfect for you.

Jens-Peter

unread,
Oct 22, 2011, 10:56:59 AM10/22/11
to project-lipsync

> rsync allows for treating symlinks as directories; I believe you want the -K
> flag ("keep") for that. Check the man page here:http://man.cx/rsync(althoughon your system is best).
I'll try that, thanks for that hint!

> Ownership should be preserved with default lipsync setup, provided there are
> identical usernames on both machines.

yeah, looked up those parameters as well. Man says :
-o, --owner preserve owner (root only)
So I might have to try that as root...

Reply all
Reply to author
Forward
0 new messages