BackupPC-users

Re: [BackupPC-users] help with BackupFilesExclude

2008-12-05 12:58:51
Subject: Re: [BackupPC-users] help with BackupFilesExclude
From: Matthias Meyer <Matthias.Meyer AT gmx DOT li>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 05 Dec 2008 18:56:28 +0100
Nick Smith wrote:

> I currently have several windows server backup clients that i use
> volume shadow to backup the data, i use a pre script that lauches the
> shadow and maps it to drive B on the windows box and then backuppc
> backups B over rsync then a post script to kill the volume shadow.
> What i would like to do is create an exclude list to only backup
> certain files on the volume shadow (sql dbs, exchange info, my docs
> etc.)  but im a little confused as to how to go about it.  I found the
> post here:
>
http://www.mail-archive.com/backuppc-users AT lists.sourceforge DOT 
net/msg08595.html
> where someone was able to make a filter.txt file and create the list,
> but that was for a linux client.  How would i make a list like that
> for a windows client? Would i have to use paths like B:\blah or B\? or
> just \Documents and settings\, \program files\mssql7\ etc? Also, would
> it exclude everything else but whats in the file?  Trying to make sure
> i havent duplicated anything here or have overlapping configuration.
> 
> Thanks for any advice you can give. this is the first time ive
> attempted to weed out files from being backed up.

I declare the exclude list within the GUI of backuppc.

Declare the "RsyncShareName" in the same manner as they are declared in your
rsyncd.conf in your windows client.
Define BackupFilesExclude:
NewKey = "*" if it should applicable to all RsyncShareName or the
RsyncShareName to which it should applicable.
Within the Key you can add the directories relativ to the RsyncShareName in
Linux syntax.
e.g.:
$Conf{RsyncShareName} = [
  'D',
  'C'
];
$Conf{BackupFilesExclude} = {
  'C' => [
    '/WINDOWS/Downloaded Program Files',
    '/WINDOWS/Offline Web Pages',
    '/WINDOWS/Temp',
    '/WINDOWS*.log',
    '/proc'
  ],
  '*' => [
    'pagefile.sys',
    'hiberfil.sys',
    '/System Volume Information',
    '/RECYCLER',
    '/$Recycle.bin',
    '/$RECYCLE.BIN',
    '/proc',
    '/Windows',
    'Temporary*',
    '/Program Files'
  ]
};

br
Matthias
-- 
Don't panic


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