synced files are linked to originals?
lewis butler
lbutler+rsync at covisp.net
Mon Jul 28 17:36:10 GMT 2008
On 28-Jul-2008, at 08:03, Matt McCutchen wrote:
> On Mon, 2008-07-28 at 12:33 +0200, Mogens Kjaer wrote:
>> lewis butler wrote:
>> ...
>>> mail ~ $ ls -ls etc/postfix/main.cf
>>> 28 -rw-r--r-- 1 root wheel 28322 Jul 27 16:31 /etc/postfix/
>>> main.cf
>>> mail ~ $ ls -ls /backup/daily.0/etc/postfix/main.cf
>>> 28 -rw-r--r-- 1 root wheel 28322 Jul 27 16:31
>>> /backup/daily.0/etc/postfix/main.cf
>>> mail ~ $ echo "#test" >> /etc/postfix/main.cf
>>> mail ~ $ ls -ls /etc/postfix/main.cf
>>> 28 -rw-r--r-- 1 root wheel 28328 Jul 28 03:39 /etc/postfix/
>>> main.cf
>>> mail ~ $ ls -ls /backup/daily.0/etc/postfix/main.cf
>>> 28 -rw-r--r-- 1 root wheel 28328 Jul 28 03:39
>>> /backup/daily.0/etc/postfix/main.cf
>>
>> Is /etc/postfix a symlink?
>
> If /etc/postfix is an absolute symlink, that would do it.
Ah... /etc/postfix is a symlink to /usr/local/etc/postfix/
> Lewis, if you want symlinks in backups to point to the proper items
> in the backup, you
> could make the original symlinks relative.
ah... well, that would be ugly
> Alternatively, you could
> avoid all symlink surprises by using a daemon on the receiving side
> with
> "munge symlinks" enabled.
This is a local rsync, so there's no receiving daemon.
I see the actual files differ...
mail ~ $ ls -ls /usr/local/etc/postfix/main.cf /backup/akane.sday.0/
usr/local/etc/postfix/main.cf
28 -rw-r--r-- 1 root wheel 28322 Jul 27 16:31 /backup/akane.sday.0/
usr/local/etc/postfix/main.cf
28 -rw-r--r-- 1 root wheel 28334 Jul 28 11:09 /usr/local/etc/
postfix/main.cf
Is there anything else I can do other than remember which paths are
symlinked? I have quite a lot of /usr/local/etc/ linked to /etc/ for
convenience (postfix, apache2/ -> httpd/, etc) ... not that I am
likely to forget NOW. Maybe I don't need the -H option after all...
More information about the rsync
mailing list