Deletion of xattr don't sync

Stanisław Gruszka stf_xl at wp.pl
Mon Mar 5 09:25:37 GMT 2007


Is there option for deleting xattr-s same as --delete for files,
because it seems deletion of xattr don't sync, however it is synced 
when data of file change, see example below. 

Maybe this is a bug or maybe this is ok?

System gentoo attr-2.4.32,  rsync form today cvs.

-- 
Regards
Stanislaw Gruszka

stasiu at sg /mnt/hda5/export $ echo "data"  > file

stasiu at sg /mnt/hda5/export $ attr -s attr1 -V val1 file
Attribute "attr1" set to a 4 byte value for file:
val1

stasiu at sg /mnt/hda5/export $ attr -s attr2 -V val2 file
Attribute "attr2" set to a 4 byte value for file:
val2

stasiu at sg /mnt/hda5/export $ rsync -av -X --delete 127.0.0.1::rsync-export /mnt/hda5/copy
receiving incremental file list
./
file

sent 100 bytes  received 184 bytes  568.00 bytes/sec
total size is 5  speedup is 0.02
stasiu at sg /mnt/hda5/export $ attr -l /mnt/hda5/copy/file
Attribute "attr1" has a 4 byte value for /mnt/hda5/copy/file
Attribute "attr2" has a 4 byte value for /mnt/hda5/copy/file

stasiu at sg /mnt/hda5/export $ attr -r attr1 file

stasiu at sg /mnt/hda5/export $ attr -l file
Attribute "attr2" has a 4 byte value for file

stasiu at sg /mnt/hda5/export $ rsync -av -X --delete  127.0.0.1::rsync-export /mnt/hda5/copy
receiving incremental file list

sent 78 bytes  received 110 bytes  376.00 bytes/sec
total size is 5  speedup is 0.03

stasiu at sg /mnt/hda5/export $ attr -l /mnt/hda5/copy/file
Attribute "attr1" has a 4 byte value for /mnt/hda5/copy/file
Attribute "attr2" has a 4 byte value for /mnt/hda5/copy/file

stasiu at sg /mnt/hda5/export $ echo dane2 >> file

stasiu at sg /mnt/hda5/export $ rsync -av -X --delete  127.0.0.1::rsync-export /mnt/hda5/copy
receiving incremental file list
file

sent 103 bytes  received 168 bytes  180.67 bytes/sec
total size is 11  speedup is 0.04

stasiu at sg /mnt/hda5/export $ attr -l /mnt/hda5/copy/file
Attribute "attr2" has a 4 byte value for /mnt/hda5/copy/file

----------------------------------------------------
Wielkanocna oferta - Śpisz 2 noce płacisz za 1 - Kliknij:
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fd83.html&sid=1039




More information about the rsync mailing list