BackupPC-users

Re: [BackupPC-users] Backup Single Directory Only

2010-02-24 12:58:06
Subject: Re: [BackupPC-users] Backup Single Directory Only
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Wed, 24 Feb 2010 11:56:29 -0600
On 2/24/2010 11:22 AM, swedishorr wrote:
>
> Hello All,
>
> I'm having a terrible time trying to get BackupPC to backup just one single 
> directory.  The directory I want to grab is /var/lib/mysql/backups.  I only 
> want to backup the contents of this directory and subdirectories, NOT 
> everything in /var/lib/mysql.  So, here are some conifgs:
>
> /etc/backuppc/pc/serverConfig.pl:
>
> $Conf&#123;FullKeepCnt&#125; =&#91;
> &nbsp; 0
> &#93;;
> $Conf&#123;IncrKeepCnt&#125; = 0;
> $Conf&#123;FullKeepCntMin&#125; = 0;
> $Conf&#123;BackupFilesOnly&#125; =&#123;
> &nbsp; '/var/lib/mysql/backups' =>  &#91;
> &nbsp;&nbsp; '',
> &nbsp;&nbsp; '/var/lib/mysql/backups'
> &nbsp;&#93;
> &#125;;
>
>
> /etc/backuppc/config.pl snippet:
>
> $Conf&#123;BackupFilesExclude&#125; =&#123;
> &nbsp; '/' =>  &#91;
> &nbsp;&nbsp; '/proc',
> &nbsp;&nbsp; '/var/named/chroot/proc',
> &nbsp;&nbsp; '/sys',
> &nbsp;&nbsp; '/var/lib/mysql',
> &nbsp;&nbsp; '/tmp',
> &nbsp;&nbsp; '/var/spool/mqueue',
> &nbsp;&nbsp; '/var/cache',
> &nbsp;&nbsp; '/var/log',
> &nbsp;&nbsp; '/var/spool/mail',
> &nbsp;&nbsp; '/USBDrive',
> &nbsp;&nbsp; '/opt/mysql'
> &nbsp;&#93;,
> &nbsp; 'C$' =>  &#91;
> &nbsp;&nbsp; '\\WINDOWS\\system32\\config\\*',
> &nbsp;&nbsp; '\\WINDOWS\\Temp\\*'
> &nbsp;&#93;
> &#125;;
>
>
> This configuration isn't backing up the /var/lib/mysql/backups folder.  If I 
> use a server specific override list of things to exclude, and leave OFF the 
> /var/lib/mysql directory, the entire /var/lib/mysql directory is backed up.  
> Right now I'm pretty stuck on how to force backupPC to backup only one 
> directory on a specific server without affecting the backups of every other 
> server under BUPCs reach.  Any insight would be hugely appreciated.

You do know that you can override the default settings for any 
individual host, and that you can do it through the web interface, don't 
you?  Just make /var/lib/mysql/backups the only target on this host and 
forget all the in/exclude stuff.

-- 
   Les Mikesell
    lesmikesell AT gmail DOT com


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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>