What options of Rsync can I reliably use/ how/ combine to either:
RELIABLY TRANSFER "working" even if "limited set" of Permissions/ ACLs reliably & without conflict between the Gray area of Cygwin Windows/ NTFS & *Nix / Perms etc
ORFlush clean / have RSync totally avoid Permissions / ACL issues if I cant do the above?
I've read close to 50 tabs and windows on what to do around this from the last decade or so.
At how to deal with it seems to change based on where & who you are asking and what version of Rsync (time & variation/ alternative code base) is being talked about.
- Rsync variations under Windows
- (Several *Nix & Windows: Cygwin variations, CwRsync, Delta Copy/ Syncrify/ Synaman, GRsync, RsyncBackup, Rsync.exe pkg, Rclone, AcroSync, YInterSync)
Options to choose:
- https://georgik.rocks/how-to-fix-incorrect-cygwin-permission-inwindows-7/
- https://duncanbowring.wordpress.com/2019/01/30/cygwin-rsync-windows-permissions/
- https://blag.nullteilerfrei.de/2014/04/07/keep-cygwin-applications-from-setting-ntfs-security-descriptors/
- more..
The answer on how to execute RSync for this specific scenario I've got from this QnA;
But after gathering all the "knowledge" on RSync around Cygwin, NTFS, Permissions & ACLs etc, I am not sure what variation does what to make a decision on how to proceed.
It turns out that to keep your Windows permissions in check, a simple chmod flag is required.
—chmod=ugo=rwX
Rsync Options (some..)
-p, --perms preserve permissions -E, --executability preserve the file's executability --chmod=CHMOD affect file and/or directory permissions -A, --acls preserve ACLs (implies --perms) -o, --owner preserve owner (super-user only) -g, --group preserve group --devices preserve device files (super-user only) --specials preserve special files -D same as --devices --specials /etc/fstab (addition of noacl)
# /etc/fstab # # This file is read once by the first process in a Cygwin process tree. # To pick up changes, restart all Cygwin processes. For a description # see https://cygwin.com/cygwin-ug-net/using.html#mount-table # This is default anyway: # none /cygdrive cygdrive binary,posix=0,user 0 0 none /cygdrive cygdrive binary,posix=0,user,noacl 0 0
stardoes). All modern OS (Apple, AIX, FreeBSD, Solaris) implement ACEs since this is standardized in NFSv4. In general, the GNU people are ignoring ACLscompletely. GNU tar only supports the outdated ACLs on Linux, but no ACLs on other OS. SAMBA tries a bad translate, Oracle has a SAMBA patch for native ACEs