Ticket #66 (new enhancement)
Windows ACL support
| Reported by: | achim | Owned by: | ben |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | bbackupd | Version: | 0.11rc2 |
| Keywords: | Windows ACL | Cc: |
Description
This would be great, especially if we want to start making BB "bare-metal restore" capable.
In case this would break backwards compatibility with really old clients, there is always the possibility of "Add a switch, functionality is disabled by default": if somebody wants to use it, they have to make sure that backend and frontend are compatible, and then enable the ACL feature themselves. In 3 years, when everybody is on a more recent (i.e. already ACL-compliant) platform, you can throw the default switch to on.
I would be very happy to see ACL support for Windows under Box Backup
It is also official now that SIDs are nowhere near important as believed. From *the* guy that ran sysinternals http://blogs.technet.com/markrussinovich/archive/2009/11/03/3291024.aspx
Change History
comment:2 Changed 2 years ago by achim
More details from the backuppc script: http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=User_Scripts_-_Client_-_Windows_VSS
# [optional] subinacl.exe # Only required if backing up ACLs and you want to use this # method instead of or in addition to 'getfacl'. The program is a # free download from Microsoft (note I found that the older # version included with the Windows Server 2003 toolkit didn't # work on XP but the following version did): # http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B # http://ss64.com/nt/subinacl.html # By setting the variable ACL or command line -A (--ACL) it is # possible to have the script dump the ACLs of each desired backup # drive for inclusion in the backup. The ACLS are generated either by # 'getfacl' (ACL=1) or more comprehensively by 'subinacl' (ACL=2) or # by both (ACL=3) The dumps are gzipped but in a format that can be # restored by 'setfacl' and 'subinacl' respectively. Note that # 'subinacl' runs slower but dumps the full ntfs file ACLs while # 'getfacl' only does the cygwin subset. Additionally, the variable # $ACLFINDPRUNE contains a list of files/directories to exclude from # the 'getfacl' dump (typically temp folders, analogous to ones you # wouldn't backup either. Similary, $ACLSUBINACLEXCLUDE is a list of # paths to exclude for the 'subinacl' dump. Note to read the subinacl # files as plain text you may need to pipe the uncompressed version # onto: iconv -f UTF-16LE -t UTF-8 | tr -d '\r'
comment:3 Changed 2 years ago by achim
See also the discussions on this thread http://www.mail-archive.com/backuppc-users@lists.sourceforge.net/msg17928.html

ACLs and file attributes http://setacl.sourceforge.net/html/examples.html (see examples 13 and 14 for storing and restoring ACL information to/from a file)
http://truetechsolutions.supersized.org/archives/24-SetAcl-goodness.html
Public domain (pre 2.0) version of SetACL http://www.helge.mynetcologne.de/setacl/
List current ACLs
To set 'change' permissions on the directory:
Remove write and change permission sets from file
Possible privileges are: write change full read_ex
Removes "Everyone" from file (everyone becomes todos in ES version)
Remove write and change permission sets from file, replace with 'read and execute' permissions: