BackupPC-users

Re: [BackupPC-users] Backuppc on the same (server) system?

2008-12-15 18:08:59
Subject: Re: [BackupPC-users] Backuppc on the same (server) system?
From: "Nils Breunese (Lemonbit)" <nils AT lemonbit DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 16 Dec 2008 00:07:29 +0100
Glassfox wrote:

> I tried several times to backup my server host, but backuppc seemed  
> to ignore the exclude files settings. I want to exclude this folders  
> from backup with their all subfolders: /proc, /sys, /media and /var/ 
> lib/backuppc. This is my current config file content:
>
> $Conf{BackupFilesExclude} = {
>  '/media/*' => [
>    '',
>    ''
>  ],
>  '/sys/*' => [
>    ''
>  ],
>  '/var/lib/backuppc/*' => [
>    ''
>  ],
>  '/proc/*' => [
>    ''
>  ]
> };
>
> I'm using Ubuntu and rsync.
> Is there any error?

Yes, your configuration is incorrect. See 
http://backuppc.sourceforge.net/faq/BackupPC.html#item__conf_backupfilesexclude_
 
  for the documentation. The keys need to correspond to share names,  
but the keys in your example correspond to directories *within* a  
share. This doesn't work.

You could solve this by using '/' (or '*', which sets excludes for all  
shares don't have any specific excludes set) as the share name and  
specifying a list of directories not to backup as the value:

----
$Conf{BackupFilesExclude} = {
   '*' => [
     '/media/*',
     '/proc/*',
     '/sys/*',
     '/var/lib/backuppc/*'
   ]
};
----

I guess you could even use the simple list form in this case as you're  
not working with multiple shares:

----
$Conf{BackupFilesExclude} = { '/media/*', '/proc/*', '/sys/*', '/var/ 
lib/backuppc/*' };
----

Nils Breunese.

------------------------------------------------------------------------------
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/