ecryptfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rsync copies twice
@ 2011-12-19 13:17 Martin Steigerwald
  2011-12-20  9:50 ` Martin Steigerwald
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Steigerwald @ 2011-12-19 13:17 UTC (permalink / raw)
  To: ecryptfs

Hi!

I used something like

rsync -a -H --acls --xattrs -S -P /home/ms2/ /home/ms

to migrate my data from encfs to ecryptfs where ms2 is the mounted encfs and 
ms is the mounted ecryptfs.

This appeared to have worked.

But: When I run the rsync again it will copy all files once again, while it 
should notice that they are already copied and do not copy them again.

Is there any known issue with ecryptfs and rsync? Might also be an issue with 
encfs as source filesystem tough. I am now copying my encfs to another machine 
via rsync+ssh onto a BTRFS filesystem to verify this. Okay, this works. On the 
second attempt no files are copied anymore. So it seems that it is an ecryptfs 
issue.

Together with the reported failure to create new files under certain 
circumstances and the more complicated handling for now I switch back to encfs 
even though it might be slower.

But I am willing to test again. Most importantly with a fix for the file 
creation issue I reported.

Thanks,
-- 
Martin Steigerwald - teamix GmbH - http://www.teamix.de
gpg: 19E3 8D42 896F D004 08AC A0CA 1E10 C593 0399 AE90

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: rsync copies twice
  2011-12-19 13:17 rsync copies twice Martin Steigerwald
@ 2011-12-20  9:50 ` Martin Steigerwald
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Steigerwald @ 2011-12-20  9:50 UTC (permalink / raw)
  To: ecryptfs

Am Montag, 19. Dezember 2011 schrieben Sie:
> Hi!
> 
> I used something like
> 
> rsync -a -H --acls --xattrs -S -P /home/ms2/ /home/ms
> 
> to migrate my data from encfs to ecryptfs where ms2 is the mounted encfs
> and ms is the mounted ecryptfs.
> 
> This appeared to have worked.
> 
> But: When I run the rsync again it will copy all files once again, while it
> should notice that they are already copied and do not copy them again.

This also is an issue that only appears when storing metadata in extended 
attributes. When storing them in the files itself on the second rsync attempt I 
get:

merkaba:~> rsync -a -H --acls -S -P /home/ms2/ /home/ms/               
sending incremental file list

sent 2920748 bytes  received 9094 bytes  177566.18 bytes/sec
total size is 13239183088  speedup is 4518.74

Thus this is probably another testcase for ecryptfs. Rsync twicing and see 
whether the second time rsync still transfers files or not.

I am now feeling much more confident about ecryptfs. I do like when rsync 
behaves this way ;).

Ciao,
-- 
Martin Steigerwald - teamix GmbH - http://www.teamix.de
gpg: 19E3 8D42 896F D004 08AC A0CA 1E10 C593 0399 AE90

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-20  9:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-19 13:17 rsync copies twice Martin Steigerwald
2011-12-20  9:50 ` Martin Steigerwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).