[PATCH] Add user/group support to brackup
Dawid Marcin Grzesiak
dmg2010 at dmg.pl
Fri May 28 17:58:10 UTC 2010
Yes, this is definitely desired feature. I mention about duplicity a
few days ago and I thought that if it uses tar it preserves hardlinks,
Currently duplicity supports deleted files, full unix permissions,
directories, and symbolic links, fifos, and device files, _but not
So if brackup will preserve unix permissions it will have all things
that duplicity have and many more ;)
On Fri, May 28, 2010 at 5:39 PM, Gavin Carr <gavin at openfusion.com.au> wrote:
> Brackup currently lacks support for recording and restoring ownership.
> The attached patches add this functionality, in a similar way to how
> modes are stored in the metafile currently. The first patch updates
> Brackup::File and Brackup::Backup to capture user and group ownership
> for all objects in the metafile; the second patch updates
> Brackup::Restore to reapply (where possible) the recorded user/group
> Please review/comment if you're interested.
> User chowns will typically only succeed if you're superuser, and if
> the user exists on the host you're restoring on. Group chowns will
> typically succeed even for unprivileged users if the restoring user
> is in the relevant group.
> chown doesn't work on symlinks, so we use Lchown if it's available.
> I'd like to just make that required, but I guess we can't since it's
> not really portable (or required on non-symlink platforms).
More information about the brackup