On Sun, Jun 1, 2008 at 8:53 AM, Marcel Meckel <[EMAIL PROTECTED]> wrote:
> As you can see, the permissions and user/group are wrong for the
> first 3 entities.
>
>
> As a result when restoring /home/myuser/.maildir to /home this afternoon
> backuppc changed owner and permission on /home to the wrong values
> (why did it touch /home in the first place?).

I'm not a BackupPC person, but I'll take a swing at this.

BackupPC is only backing up /home/myuser/.maildir (BackupFilesOnly),
but it's storing this directory rooted at /, so it has to create the
/home and /home/myuser directories itself on the backup server.  In
the absence of information about the "correct" uid/gid, it just calls
"mkdir" to synthesize the directories, with thus have the backuppc
uid/gid.

tarCreate then creates a tarball rooted at /, generated by simply
tarring with something like

tar -c -f - -C $path_to_host_root home/myuser/.maildir

thus capturing the synthesized directories' uid and gid.

Looking at the BackupPC_tarCreate manpage, I would guess that this would work:

  BackupPC_tarCreate -h myhost -n 45 -s / -r ./home/myuser/ -p ./-L /

This will strip the ./home/myuser portion of the pathnames from the
tarball, resulting in a tarball rooted in /home/myuser, which can then
be untarred on the client with

  tar -C /home/myuser -xf $tarball

I hope that both makes sense and approximates a correct assessment of
the problem :)

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-devel mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to