BackupPC-users

Re: [BackupPC-users] rsync - fileowner lost during backup or restore

2008-12-09 13:46:35
Subject: Re: [BackupPC-users] rsync - fileowner lost during backup or restore
From: Matthias Meyer <Matthias.Meyer AT gmx DOT li>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 09 Dec 2008 19:44:54 +0100
Matthias Meyer wrote:

> Hi,
> I try to backup my windows clients with backuppc as well as cygwin/rsync.
> 
> The backup/restore with rsyncd at windows and rsync on linux (run as root)
> works well. Only as normal (linux) user it didn't work because of
> insufficient privileges for chmod and chgrp.
> 
> With backuppc (run as user backuppc) I have problems.
> In the XferLOG the uid/gid of the files will be reported. But in the
> backuppc datastore (/var/lib/backuppc/pc/...) the fileowner is set to
> backuppc:backuppc.
> After restore of files to the windows client they will be owned by the
> rsyncd process owner (SYSTEM:SYSTEM).
> 
> I use the following flags for backup:
> --super --numeric-ids --perms --owner --group -D --links --hard-links
> --times --block-size=2048 --recursive --one-file-system --bwlimit=2840
> and the following for restore:
> --numeric-ids --perms --owner --group -D --links --hard-links
> --times --block-size=2048 --relative --ignore-times --recursive
> 
> Did backuppc store the fileowner in the filesystem or in the attrib file?
> Did backuppc need to be run as root to run chmod/chgrp succesfull?
> 
> Thanks in advance
> Matthias

I found my mistake:
Parameter for backup should be:
--numeric-ids --perms --owner --group -D --links --hard-links --times
--block-size=2048 --recursive --one-file-system
and for restore it should be:
--super
--numeric-ids --perms --owner --group -D --links --hard-links --times
--block-size=2048 --relative --ignore-times --recursive

All the famous defaults from backuppc but additional --super.

br
Matthias
I would believe 
-- 
Don't panic


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

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