bianco n00b
Joined: 21 Jun 2005 Posts: 54
|
Posted: Sun Jan 24, 2010 11:29 pm Post subject: [rsync] Using Protect filter on a merge rules file |
|
|
Hy, I've a strange problem using rsync version 3.0.6 protocol version 30:
My /etc/rsyncd.conf:
Code: | ...
[bianco-home]
read only = no
filter = . /etc/rsync/filter/bianco-home
path=/home/bianco/
list = yes
use chroot = no
auth users = bianco
uid= bianco
secrets file = /etc/rsync/rsyncd.secrets
... |
and here is the /etc/rsync/filter/bianco-home file:
Code: |
P *touch*
- /*/
- /.*
- */
- *
|
So this should filter any file into bianco-home and protect any *thouch* file in the requesting client home (or not?)
In my remote client home (to syncronize) I've only a test file called 'atouchs'.
Now from my client :
Code: | $rsync -Sav ${bianco_ip}::bianco-home /home/bianco --delete-after |
and what I get is (password not matter):
Code: | $rsync -Sav ${bianco_ip}::bianco-home /home/bianco --delete-after
receiving file list ... done
deleting atouchs
sent 63 bytes received 115 bytes 50.76 bytes/sec
total size is 0 sppedup is 0.00
$ |
So rsync delete the 'atouchs' file!!!
why???
NB:
doin instead:
Code: | $rsync -Sav -f 'P *touch*' ${bianco_ip}::bianco-home /home/bianco --delete-after
receiving file list ... done
./
sent 63 bytes received 115 bytes 50.76 bytes/sec
total size is 0 sppedup is 0.00
$ |
File is not deleted!
I've tryed also using '--delete'
Someone may help me?!
What I whant is:
- even the file is present or not into the sender
- do not delete it on the reciver (but delete all the other files not specified into the filter!!! --delete is neaded)
thank you. |
|