Re: Using rsync to sync to NTFS: permission issues

2005-01-20 Thread Lapo Luchini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Warren Young wrote:
 If you don't compress the tar file,
 there's a nonzero chance that rsync can still save some I/O when
 synchronizing after the first copy.

There's a quite high chance that it would transfer only the modified
bytes with some margin up to the next block boundary...

Maybe not optimal such as bsdiff, but at least it's on-the-fly and
doesn't require 17 times the file size in RAM amount ;-)

  Lapo

- --
L a p o   L u c h i n i
l a p o @ l a p o . i t
w w w . l a p o . i t /
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkHv6IYACgkQaJiCLMjyUvthyACfbLvMjUtgP06hxp8l9L9dZB6b
czEAoJ4pYC6YfDWtED/gIqt4lZz44ExP
=163c
-END PGP SIGNATURE-


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Using rsync to sync to NTFS: permission issues

2005-01-19 Thread Wim Heemskerk Lists
Hi,
I (want to) use rsync under cygwin to sync files from a Linux box to a WinXP 
box. I want to maintain a full backup, including the file permissions.

First, this is how far I got:
- the XP box uses an NTFS partition to write the back-up on.
- rsync runs on the XP box (as it is by far the muscle of the two and can't 
have a listening port open) and uses the -e ssh option.
- cygwin ntea is on, ntsec is left on too.
- I am administrator on the WinXP box and attached those credentials to UID 
0 undercygwin. rsync is indeed able to set file credentials.
- I made all accounts needed on the XP box, as XP doesn't accept use of 
account / group numbers that aren't tied to an account

Now the problem:
- rsync locks itself out sometimes: when I sync a file my way with 
permissions like this: rwxrwx--- user1:user1 rsync will make it just fine. 
But: when it wishes to update that file next time, it has no access. 
Likewise it makes folders with such permissions and then can't access them 
to write the files into them.
- rsync handles this rather badly btw: it goes to 100% CPU use and stays 
there forever and ever, not getting any further
- this non-access is consistent with NTFS file permissions: even an 
administrator can't normally browse through folders to which he has no 
access, but: he should be able to make backups of them / place those back, 
which is what we are doing here.
- WinXP info tell me that to get this special access the application must 
use the NTFS back-ups API. Apperently cygwin+rsync does not.. how can I 
change that?

Thanks for any help you can provide! 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: Using rsync to sync to NTFS: permission issues

2005-01-19 Thread Warren Young
Wim Heemskerk Lists wrote:
I (want to) use rsync under cygwin to sync files from a Linux box to a 
WinXP box. I want to maintain a full backup, including the file 
permissions.
Without something like NIS or LDAP to synchronize the user and group 
databases between the machines, I think you will have problems with that 
goal.

- rsync locks itself out sometimes: when I sync a file my way with 
permissions like this: rwxrwx--- user1:user1 rsync will make it just 
fine. But: when it wishes to update that file next time, it has no 
access. 
Are you running rsync as the SYSTEM user?
- rsync handles this rather badly btw: it goes to 100% CPU use and 
stays there forever and ever, not getting any further
I've seen this before, but only on a Win98 box, where it would freeze 
the machine, hard.  I have no more information on the problem beyond 
that, and won't be able to investigate it because that box has since 
been replaced by a WinXP box.

- WinXP info tell me that to get this special access the application 
must use the NTFS back-ups API. Apperently cygwin+rsync does not.. how 
can I change that?
Such an effort would be best done with a native port of rsync, I'd 
think.  Adding Win32-specific calls to Cygwin rsync would be missing the 
whole point of Cygwin, I think.

Bottom line, I think if I had a hard requirement to back up files with 
permissions from a Linux box to a Win32 box, I'd just tar them up and 
send the tar file to the PC.  If you don't compress the tar file, 
there's a nonzero chance that rsync can still save some I/O when 
synchronizing after the first copy.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/