Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[rsync] Using Protect filter on a merge rules file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bianco
n00b
n00b


Joined: 21 Jun 2005
Posts: 54

PostPosted: Sun Jan 24, 2010 11:29 pm    Post subject: [rsync] Using Protect filter on a merge rules file Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum