Wayne Davison schrieb:
On Mon, Jun 27, 2005 at 04:05:47PM +0200, Tomasz Chmielewski wrote:

I'm trying to copy recursively only /etc, /home/samba/profiles and /home/samba/shared.


The manpage explains how you need to include all directories on the way
down to the file/dir in the recursive descent.  Or just use --files-from
and it is usually much easier than trying to get the include/exclude
rules right.  Some examples of both the include/exclude syntax and the
--files-from syntax are in this recent email on the subject:

    http://lists.samba.org/archive/rsync/2005-June/012846.html

sorry, I just can't make it work.

I just spent another hour reading the manual and trying to figure it out, but I can't make it.

--include="/etc" \

this one works and the whole /etc is transferred.


--include="/home/samba/profiles" \

this is similar to the "/etc" above, but it doesn't work at all, nothing from /home/samba/profiles is transferred


--include="/home/samba/shared" \

nothing from /home/samba/shared is transferred


--exclude="/*" \

this seem to work, as nothing from / is transferred (I don't need /proc or /usr). But this also seem to exclude "/home/samba/shared" and "/home/samba/profiles".


Perhaps it would be easier to use three different rsyncs:

[EMAIL PROTECTED]:/etc /home/CON/etc

[EMAIL PROTECTED]:/home/samba/profiles /home/CON/home/samba/profiles

[EMAIL PROTECTED]:/home/samba/shared /home/CON/home/samba/shared


but I see no reason why it should be three commands, instead of one (well, it seems hard to include and exclude the diredtories you want - at least for me).


--
Tomek
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to