[Box Backup-dev] Re: [Box Backup] Attributes not backed up
correctly, also request to add ACL support
Chris Wilson
boxbackup-dev@boxbackup.org
Wed, 12 Aug 2009 08:25:27 +0100 (BST)
Hi Ben,
On Wed, 12 Aug 2009, Ben Summers wrote:
>> 2. storing Windows files with attributes that are not backwards-compatible
>> with old clients or compatible with being restored on Unix.
>
> I thought of this when I wrote the original code!
> BackupClientFileAttributes writes an AttributeType as the first element.
> Currently only ATTRIBUTETYPE_GENERIC_UNIX is defined, but the intention
> was to extend it with other attribute types as required.
>
> So what you might do is define ATTRIBUTETYPE_WINDOWS, and store Windows
> attributes. If you restore on the wrong platform, ignore the attributes you
> don't understand.
I know about that, but that's exactly what I meant by "not
backwards-compatible" :)
> Windows ACLs will be amusingly complicated by SIDs since account SIDs
> will depends on the computer/domain's SID. If you restore to a fresh
> install, the ACLs won't make sense without mapping.
Unless the names are the same (and we map names instead of SIDs) or the
computer being restored to has already been joined to the domain (but that
only applies to domain account SIDs :)
Cheers, Chris.
--
_____ __ _
\ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |