Bacula-users

Re: [Bacula-users] Ownership of restores

2012-11-13 03:16:51
Subject: Re: [Bacula-users] Ownership of restores
From: Geert Stappers <Geert.Stappers AT vanadgroup DOT com>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 13 Nov 2012 09:09:15 +0100
Op 20121112 om 13:55 schreef Christoph Litauer:
> Am 12.11.2012 um 11:35 schrieb Kleber Leal <kleber.leal AT gmail DOT com>:
> > Em 12/11/2012 06:32, "Christoph Litauer" <litauer AT uni-koblenz DOT de> 
> > escreveu:
> > > Dear bacula users,

Hello Mailinglist,

Feel comfortable while reading in the discussion order.


> > > I am using bacula backups for some years now. Great system! I nearly 
> > > never had problems to restore something ...
> > > For some time now, parts of my restores have the wrong ownership.
> > > Example:
> > > 
> > > baculas restore command lists:
> > > $ dir
> > > drwxr-xr-x   6 litauer  1050              83  2012-11-09 10:25:23  
> > > /export/profiles2/Win2K/litauer/Application Data/
> > > drwxr-xr-x   2 litauer  1050            4096  2012-11-09 10:25:23  
> > > /export/profiles2/Win2K/litauer/Cookies/
> > > drwxr-xr-x   2 litauer  1050               6  2012-11-09 10:25:23  
> > > /export/profiles2/Win2K/litauer/Desktop/
> > > drwxr-xr-x   4 litauer  1050              61  2012-11-09 10:25:23  
> > > /export/profiles2/Win2K/litauer/Favorites/
> > > drwxr-xr-x   2 litauer  1050              22  2012-11-09 10:25:23  
> > > /export/profiles2/Win2K/litauer/IETldCache/
> > > drwxr-xr-x   4 litauer  1050              46  2012-11-09 10:25:23  
> > > /export/profiles2/Win2K/litauer/My Documents/
> > > -rwxr--r--   1 litauer  1050         2097152  2012-11-09 10:25:22  
> > > /export/profiles2/Win2K/litauer/NTUSER.DAT
> > > 
> > > 1050 is group employee. When I restore these files, I get
> > > 
> > > drwxr-x--x 6 root    bacula        83 Nov 12 10:03 Application Data
> > > drwxr--r-- 2 litauer employee    4096 Nov 12 10:03 Cookies
> > > drwxr-xr-x 2 litauer employee       6 Mar 30  2006 Desktop
> > > drwxr-x--x 4 root    bacula        61 Nov 12 10:03 Favorites
> > > drwxr--r-- 2 litauer employee      22 Nov 12 10:03 IETldCache
> > > drwxr-xr-x 4 litauer employee      46 Nov 12 10:03 My Documents
> > > -rwxr--r-- 1 litauer employee 2097152 Nov  9 10:25 NTUSER.DAT
> > > 
> > > As you can see, some directories belong to root/bacula. The restore log 
> > > stated "Restore OK" ...
> > > 
> > Hi Christoph,
> > Are you restoring on the same server you got the backup?
> > 
> > If not, you should have to keep the uid and gid across all servers
> > to have the same user and group mapping when copying files preserving
> > ownerships.
> > 
> > Kleber Leal
> > 
> 
> Hi Kleber,
> 
> thanks for your response.
> Yes, I am restoring to the same server the backup was taken from.
> Parts of the restore got the correct user and group mapping ...
> 

Could it be that Samba or another file ownership remapping technique is 
involved?

If so, goes a restore the same way back, as a backup came?


Cheers
Geert Stappers
-- 
http://www.vanadcimplicity.com
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>