Re: [BackupPC-users] Understanding rsync

2006-07-24 Thread Craig Barratt
Nicholas writes:

> You must remember that by default BackupPC runs as user backuppc with
> limited access.  You could use sudo over SSH for local backups.
> 
> i.e. $Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList+';

...plus drop the "+" from $argList:

$Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList';

since there is no shell that needs escaping of arguments.

Craig

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Restoring a localhost

2006-07-24 Thread Mark Miksis
I've been wondering just how smooth it would be to restore a backed-up Linux
localhost.  Has anyone done this who could share their thoughts or experiences?

Here's what I'm wondering:  Assume a Linux server with all OS and user data
files on drive A, __TOPDIR__ on drive B.  Drive A fails (or maybe I just need to
reinstall the OS for some reason).  The restore process would obviously start
with installing the OS on a new drive and then installing BackupPC before I can
get to my backups.  This means that I will want to have certain critical files
available (and backed up) somewhere outside of the BackupPC infrastructure:

- BackupPC source or RPM (can be downloaded)
- File::RsyncP source or RPM (can be downloaded)
- any changes to default config.pl
- localhost's per-PC config.pl
- any necessary customization to the BackupPC httpd conf file
- backuppc user's ssh keypair (and known_hosts?)

Once I get BackupPC going, the rest is easy.  Any other gotchas?  Anything
missing from my list?


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] dry run of BackupPC_compressPool cant' create dirs

2006-07-24 Thread Arlequín
Hello, list

I am following the steps described here[1] in order to compress my 
backup pools.
I've backed up two clients and now I am ready to run BackupPC_compressPool

in test mode using the -t and -r flags.

I su to BackupPC user (backuppc) and launched the command:

/usr/share/backuppc/bin/BackupPC_compressPool -t -r

but I am getting the following permission errors:

mkdir /var/lib/backuppc/cpool/4: Permission denied at 
/usr/share/backuppc/bin/BackupPC_compr
essPool line 153
mkdir /var/lib/backuppc/cpool/c: Permission denied at 
/usr/share/backuppc/bin/BackupPC_compr
essPool line 153
mkdir /var/lib/backuppc/cpool/0: Permission denied at 
/usr/share/backuppc/bin/BackupPC_compr
essPool line 153
mkdir /var/lib/backuppc/cpool/8: Permission denied at 
/usr/share/backuppc/bin/BackupPC_compr
essPool line 153

I don't want to run that command as root because the documentation says 
I have to run it as backuppc user.

Should I run it as root anyway?

Thanks in advance,
[1] 

-- 
Arlequín _o)
amahoro_AT_adinet_DOT_com_DOT_uy / \\
http://counter.li.org/ _(___V
Linux Registered User  #207262

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Understanding rsync

2006-07-24 Thread Les Mikesell
On Mon, 2006-07-24 at 16:49 -0500, Randy Barlow wrote:
> Les Mikesell wrote:
> > Recent versions of rsync have changed their behavior so sockets
> > are included (and generally hang) if you specify --devices.  Try
> > changing --devices with -D in $Conf{RsyncArgs} and
> > $Conf{RsyncRestoreArgs}.
> 
> Awesome!  This worked.  Now I just have one more question: since I'm
> backing up localhost here, it's a bit of a waste to use ssh as the
> transport method.  Can I just use:
> 
> $Conf{RsyncClientCmd} = '$rsyncPath $argList+';
> 
> instead of:
> 
> $Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';

Normally the backuppc user won't have read access to all the files
so you have to set up passwordless sudo to let the command run as
root.  I haven't done that myself but I think it has been mentioned
on the list before.

-- 
  Les Mikesell
   [EMAIL PROTECTED]



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Understanding rsync

2006-07-24 Thread Nicholas Hall
You must remember that by default BackupPC runs as user backuppc with limited access.  You could use sudo over SSH for local backups.i.e. $Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList+';On 7/24/06, 
Randy Barlow <[EMAIL PROTECTED]> wrote:
Les Mikesell wrote:> Recent versions of rsync have changed their behavior so sockets> are included (and generally hang) if you specify --devices.  Try> changing --devices with -D in $Conf{RsyncArgs} and
> $Conf{RsyncRestoreArgs}.Awesome!  This worked.  Now I just have one more question: since I'mbacking up localhost here, it's a bit of a waste to use ssh as thetransport method.  Can I just use:
$Conf{RsyncClientCmd} = '$rsyncPath $argList+';instead of:$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';???  Thanks!Randy-
Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___BackupPC-users mailing list
BackupPC-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/-- Nick HallAlexssa Enterprisesp: 262.338.3742m: 262.208.6271Never lose your data!  Try it free at 
www.neverlosedata.com.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Understanding rsync

2006-07-24 Thread Randy Barlow
Les Mikesell wrote:
> Recent versions of rsync have changed their behavior so sockets
> are included (and generally hang) if you specify --devices.  Try
> changing --devices with -D in $Conf{RsyncArgs} and
> $Conf{RsyncRestoreArgs}.

Awesome!  This worked.  Now I just have one more question: since I'm
backing up localhost here, it's a bit of a waste to use ssh as the
transport method.  Can I just use:

$Conf{RsyncClientCmd} = '$rsyncPath $argList+';

instead of:

$Conf{RsyncClientCmd} = '$sshPath -q -x -l root $host $rsyncPath $argList+';

???  Thanks!

Randy



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] Set host-based backup path

2006-07-24 Thread Mark Coetser
> Hi
> 
> I'm currently giving BackupPC a try and I've just set up my first rsyncd
> backup. What I don't get is how to set on a per host basis tha path where
> to
> store the backuped data. By default (on my Gentoo system) it goes
> in /var/lib/backuppc/pc/$HOST and I would like it to be in another
> directory
> (that it's actually another partition).


I would suggest stopping backuppc and moving /var/lib/backuppc/pc to your
other partition just make sure you keep the permissions intact, then making
a symlink to that

Thank you,

Mark Adrian Coetser
[EMAIL PROTECTED]
http://www.tux-edo.co.za, http://www.thummb.com
cel: +27 76 527 8789

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


[BackupPC-users] Set host-based backup path

2006-07-24 Thread Davide Ferrari
Hi

I'm currently giving BackupPC a try and I've just set up my first rsyncd 
backup. What I don't get is how to set on a per host basis tha path where to 
store the backuped data. By default (on my Gentoo system) it goes 
in /var/lib/backuppc/pc/$HOST and I would like it to be in another directory 
(that it's actually another partition).

Thanks in advance

-- 
Davide Ferrari
System Administrator
atrapalo.com

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/


Re: [BackupPC-users] xFer Error

2006-07-24 Thread Arlequín
On 20/07/2006 20:39, Nils Breunese (Lemonbit Internet) wrote:
> Arlequín wrote:
> 
>> On 17/07/2006 19:50, Nils Breunese (Lemonbit Internet) wrote:
>>> Gabriel Menini wrote:
>>>
>>> The fix is probably to use -D instead of --devices. This was changed
>>>  in 2.1.2pl2 and has been mentioned on this list quite a lot of
>>> times.
>>>
>>> Nils Breunese.
>>>
>>>
>>>
>> Thanks, Nils
>>
>> Should have browsed the list archives before asking, sorry.
>> I'm running Ubuntu based BackupPC version 2.1.1-2ubuntu3
>>
>> How can I upgrade to 2.1.2pl2?
>> Perhaps using another repository?
> 
> By the way, you don't need to upgrade tot 2.1.2pl2 to fix this. Just  
> change --devices to -D for $Conf{RsyncArgs} and $Conf 
> {RsyncRestoreArgs} in your config.pl file. There are other fixes in  
> the new version of course (check the release notes).
> 
> Nils Breunese.
> 

Dear Nils,

I've changed --devices to -D in $Conf{RsyncArgs} and everything is OK.

-- 
Arlequín _o)
amahoro_AT_adinet_DOT_com_DOT_uy / \\
http://counter.li.org/ _(___V
Linux Registered User  #207262

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/