<div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Check if the FAQ here can be helpful: <a href="https://www.itefix.net/content/permissions-filesdirectories-are-clutteredmixed">https://www.itefix.net/content/permissions-filesdirectories-are-clutteredmixed</a></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Tev</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-01 14:00 GMT+02:00  <span dir="ltr"><<a href="mailto:rsync-request@lists.samba.org" target="_blank">rsync-request@lists.samba.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send rsync mailing list submissions to<br>
        <a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.samba.org/mailman/listinfo/rsync" rel="noreferrer" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:rsync-request@lists.samba.org">rsync-request@lists.samba.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:rsync-owner@lists.samba.org">rsync-owner@lists.samba.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of rsync digest..."<br>
<br>To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" rel="noreferrer" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" rel="noreferrer" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
<br>
---------------------------------------<br>Today's Topics:<br>
<br>
   1. rsync on Windows questions (Fabian Cenedese)<br>
   2. Re: rsync on Windows questions (Simon Hobson)<br>
   3. Re: rsync on Windows questions (Fabian Cenedese)<br>
   4. Re: rsync on Windows questions (Fabian Cenedese)<br>
<br><br>---------- Videresendt e-post ----------<br>From: Fabian Cenedese <<a href="mailto:Cenedese@indel.ch">Cenedese@indel.ch</a>><br>To: <a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a><br>Cc: <br>Date: Fri, 01 Jul 2016 09:15:30 +0200<br>Subject: rsync on Windows questions<br>Hi<br>
<br>
I'm using a cygwin compiled rsync on Windows to backup<br>
and restore files from my local Windows computer. I'm trying<br>
several destination types:<br>
<br>
- remote with rsync://<br>
- Samba share \\Server\Share<br>
- local drive<br>
<br>
I'm having problems with the user rights. The backup works<br>
ok but after restoring some files I can't access them. I've<br>
read that this is because rsync runs as cygwin user and the<br>
*ix rights are completely different than the Windows ACLs.<br>
I've tried various combinations of -o -g -acl -p etc. But none<br>
worked so I could access my files immediately. Some people<br>
had success when adding in their cygwin /etc/fstab a mount<br>
parameter noacl. However I don't have a full cygwin, only the<br>
rsync binary and the necessary cygwin dlls. The only<br>
parameter that helped somehow was<br>
<br>
--chmod=a=rwx,Da+x<br>
<br>
Is there no other possibility? Can I maybe tell cygwin to use<br>
a custom fstab from my installation directory? How do other<br>
people use rsync on Windows?<br>
<br>
And a second question: Do --copy-dest or --link-dest<br>
help on local targets? Or does this create even<br>
more stress on the disk?<br>
<br>
Thanks<br>
<br>
bye  Fabi<br>
<br>
<br>
<br>
<br>
<br><br>---------- Videresendt e-post ----------<br>From: Simon Hobson <<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>><br>To: "<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>" <<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>><br>Cc: <br>Date: Fri, 1 Jul 2016 09:12:19 +0100<br>Subject: Re: rsync on Windows questions<br>Fabian Cenedese <<a href="mailto:Cenedese@indel.ch">Cenedese@indel.ch</a>> wrote:<br>
<br>
> I'm having problems with the user rights. The backup works<br>
> ok but after restoring some files I can't access them.<br>
<br>
That's to be expected.<br>
NTFS has a very rich permissions system and rsync won't be capturing that. While it's a PITA, your best best is resetting permissions after restore. It's probably as 'simple' (for your own documents etc) to select the top level folder they are in, go to permissions, and have Windows re-apply them recursively - but as to the exact steps, I can't remember as Windows is something I avoid as much as I can get away with.<br>
<br>
It's actually rather funny, but sad, that NTFS has a security model waaaaaay more capable and nuanced than most Unix systems (even some with ACLs) - yet until relatively recently, Windows didn't take advantage of this.<br>
<br>
> And a second question: Do --copy-dest or --link-dest<br>
> help on local targets? Or does this create even<br>
> more stress on the disk?<br>
<br>
I don't think NTFS supports hard links, and if it doesn't then link-dest won't work anyway.<br>
<br>
Overall, while rsync is a good tool for many things, for backups in the Windows world it's probably not a good fit except for your own documents where it's "easy" to reset file permissions after a restore. Trying to do other than documents (ie the system and applications) is pretty well guaranteed to lead to security permissions screwed up to the point where it's not worth doing the backup in the first place.<br>
<br>
<br>
<br>
<br><br>---------- Videresendt e-post ----------<br>From: Fabian Cenedese <<a href="mailto:Cenedese@indel.ch">Cenedese@indel.ch</a>><br>To: "<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>" <<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>><br>Cc: <br>Date: Fri, 01 Jul 2016 10:35:00 +0200<br>Subject: Re: rsync on Windows questions<br>At 10:12 01.07.2016, Simon Hobson wrote:<br>
>> I'm having problems with the user rights. The backup works<br>
>> ok but after restoring some files I can't access them.<br>
><br>
>That's to be expected.<br>
>NTFS has a very rich permissions system and rsync won't be capturing that. While it's a PITA, your best best is resetting permissions after restore. It's probably as 'simple' (for your own documents etc) to select the top level folder they are in, go to permissions, and have Windows re-apply them recursively - but as to the exact steps, I can't remember as Windows is something I avoid as much as I can get away with.<br>
<br>
I know how to do it (or at least managed to do it manually), but this backup<br>
and restore should also be usable for "normal" users that don't know about<br>
or don't want to fiddle with access rights.<br>
<br>
>Overall, while rsync is a good tool for many things, for backups in the Windows world it's probably not a good fit except for your own documents where it's "easy" to reset file permissions after a restore. Trying to do other than documents (ie the system and applications) is pretty well guaranteed to lead to security permissions screwed up to the point where it's not worth doing the backup in the first place.<br>
<br>
This is meant to copy local documents so they're not lost in case of a<br>
locky attack. This is not a complete backup, just kind of a Windows poor<br>
man's time-machine where the files on the server are not accessible to<br>
viruses. It'd be perfect if I could just force rsync to run as the local user<br>
instead of some linux/cygwin user. OK, the best thing would be a native<br>
rsync for Windows :)<br>
<br>
There are several tools out there that use a cygwin rsync and just offer<br>
a GUI for easier handling. I was wondering if they don't have this problem<br>
or if they compile a special rsync without the user rights stuff.<br>
<br>
Thanks<br>
<br>
bye  Fabi<br>
<br>
<br>
<br>
<br><br>---------- Videresendt e-post ----------<br>From: Fabian Cenedese <<a href="mailto:Cenedese@indel.ch">Cenedese@indel.ch</a>><br>To: "<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>" <<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a>><br>Cc: <br>Date: Fri, 01 Jul 2016 11:31:15 +0200<br>Subject: Re: rsync on Windows questions<br>At 10:35 01.07.2016, Fabian Cenedese wrote:<br>
>At 10:12 01.07.2016, Simon Hobson wrote:<br>
>>> I'm having problems with the user rights. The backup works<br>
>>> ok but after restoring some files I can't access them.<br>
>><br>
>>That's to be expected.<br>
>>NTFS has a very rich permissions system and rsync won't be capturing that. While it's a PITA, your best best is resetting permissions after restore. It's probably as 'simple' (for your own documents etc) to select the top level folder they are in, go to permissions, and have Windows re-apply them recursively - but as to the exact steps, I can't remember as Windows is something I avoid as much as I can get away with.<br>
><br>
>I know how to do it (or at least managed to do it manually), but this backup<br>
>and restore should also be usable for "normal" users that don't know about<br>
>or don't want to fiddle with access rights.<br>
<br>
I'm now trying the MinGW/MSYS rsync. That is older (3.0.8) but seems to<br>
work much better concerning user rights.<br>
<br>
Thanks<br>
<br>
bye  Fabi<br>
<br>
<br>
<br>
<br>_______________________________________<br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" rel="noreferrer" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
<br>
rsync mailing list<br>
<a href="mailto:rsync@lists.samba.org">rsync@lists.samba.org</a><br>
<a href="https://lists.samba.org/mailman/listinfo/rsync" rel="noreferrer" target="_blank">https://lists.samba.org/mailman/listinfo/rsync</a><br>
<br></blockquote></div><br></div>