logo       

Re: Adding Linux clients to backup: msg#00201

sysutils.backup.backuppc.general

Subject: Re: Adding Linux clients to backup

"Michael Bellears" writes:

> I have just installed BackupPC (2.1.0-3) on a Debian Sarge box.
>
> I am now attempting to add a test Linux(Debian Also) to be backed up.
>
> I have added the following to /etc/backuppc/hosts
> 192.168.1.4 0 backup_reports@xxxxxxxxxxxxx
>
> Do I then need to create a "192.168.1.4" directory in /etc/backuppc/ ?

I don't think Debian puts the data directory below /etc. The
backup files are likely stored somewhere else.

But, yes, typically you would manually create the

/path/to/BackupPC/pc/HOST

directory (owned by the BackupPC user) so you can create a per-client
config.pl file in:

/path/to/BackupPC/pc/HOST/config.pl

> i.e.
>
> $Conf{RsyncClientPath} = '/usr/bin/rsync';
> $Conf{XferMethod} = "rsync";
> $Conf{RsyncShareName} = "/";
> $Conf{BackupFilesOnly} = ["/etc", "/var/www", "/home"];
> $Conf{RsyncClientCmd} = "$sshPath -l root $host $rsyncPath $argList+";
> $Conf{RsyncClientRestoreCmd} = "$sshPath -l root $host $rsyncPath $argList+";

You need to use single quotes instead of double quotes. Otherwise
each $ needs to be escaped with a \.

Also, you only need to put values in the per-client config.pl
file that are different to the main config file. Therefore
you probably only need:

$Conf{XferMethod} = "rsync";
$Conf{RsyncShareName} = "/";
$Conf{BackupFilesOnly} = ["/etc", "/var/www", "/home"];

or even just:

$Conf{BackupFilesOnly} = ["/etc", "/var/www", "/home"];

> Is the "standard" method to run rsync on Linux clients? (I notice there
> is an rsyncd option also)

Yes. Although some people are happy using tar.

Craig


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
BackupPC-users mailing list
BackupPC-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise