Op 6-nov-2006, om 17:07 heeft Michel het volgende geschreven:

> I have two linux box to backup. For example,  server 1 with Apache  
> where
> I want to backup /srv/website/htdocs/ and /etc/httpd_conf/  
> directories,
> server 2 with Mysql where I want to backup /var/lib/mysql directory.
>
> I don't know how to configure config.pl to do this.  I use TAR method.
>
> If I put :
>
> $Conf{TarShareName} = [' /srv/website/htdocs ','/etc/httpd_conf'];
> or
>
> $Conf{TarShareName} = ' /var/lib/mysql ';
>
> It only saves server 1 or server 2 (which is correct)
>
> and when I try
> $Conf{TarShareName} = [' /srv/website/htdocs ','/etc/httpd_conf','
> /var/lib/mysql '];
>
> I get an error since one or two of those directories doesn't/don't  
> exist
> on the client.
>
> How to do it? use $Conf{BackupFilesOnly} ? or simply order a backup  
> on '/' ?
>
> I am a newbie in Backup PC so excuse me if my question is idiot ;-)

See http://backuppc.sourceforge.net/faq/BackupPC.html#configuration_file

"The BackupPC configuration file resides in __TOPDIR__/conf/ 
config.pl. Optional per-PC configuration files reside in __TOPDIR__/ 
pc/$host/config.pl. This file can be used to override settings just  
for a particular PC."

So just create __TOPDIR__/pc/server1/config.pl with $Conf 
{TarShareName} = [' /srv/website/htdocs ','/etc/httpd_conf'] and  
__TOPDIR__/pc/server2/config.pl with $Conf{TarShareName} = ' /var/lib/ 
mysql'. Global options go into __TOPDIR__/conf/config.pl.

Nils Breunese.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to