On Thu, May 14, 2009 at 08:07:47AM -0400, Dan Langille wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I was contacted off-list last night regarding systems where the GID/UID
> of the backed up file does not exist when restoring.
> 
> The backup was performed on a system that contained GID/UID entries that
> did not exist on the new server.  The user reported an issue involving
> unexpected chown settings on the restored file set. Specifically, many
> files were chown root:wheel where he expected them to be something from
> the missing GID/UID values.  He has since solved this issue by adding
> the missing values to the system and performing the restore again.
> 
> I have not looked at the code.  But I see the above characteristics as
> the best result.
> 
> My thoughts indicate we have two options in this situation:
> 
> 1 - store GID/UID numeric values, but if those numbers mapped to a
> different group/user on restore, that's bad,  Very bad.
> 
> 2 - store GID/UID names, so we Do The Right Thing(tm) when restoring.
> If the GID/UID is not found, use root defaults (in this case, root:wheel).
> 
> - From the scenario described, I think we do option 2 at present.
> 
> I could not find this point documented anywhere.  I'll write something
> up about it unless someone points me to existing material.
> 

Option to restore by numeric uid/gid values would be nice, if it's not
possible already atm..

Think about 'disaster recovery' case.. Your server crashes.. 
to recover you do:

- Install new minimal base OS
- Install bacula agent
- Restore the latest backup using Bacula

/etc/passwd won't have user information when the restore is started.. 
so files will be restored with wrong owner/group..

Restoring with numerical uid/gid would be correct in this case.

-- Pasi

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to