BackupPC-users

Re: [BackupPC-users] how to set drive letters by host?

2011-03-07 08:01:18
Subject: Re: [BackupPC-users] how to set drive letters by host?
From: Carl Wilhelm Soderstrom <chrome AT real-time DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Mon, 7 Mar 2011 06:59:04 -0600
On 03/06 09:34 , SSzretter wrote:
> Is it possible to specify drive letters per host for smb?    For example, I
> want to back up  c$ for machinea,  c$, d$ for machineb, and  c$,e$ for
> machinec  ?   Is this possible/how?

If your machine is called 'foo.bar.tld' in your /etc/backuppc/hosts file,
then create a file called '/etc/backuppc/foo.bar.tld.pl' and give it
contents that redefine variables in the config.pl file.

Here's an example file, which even has exclude patterns for two possible
rsyncd shares that you might connect to (even tho only one is being
connected to); 'docs' (c:\Documents and Settings\) and 'cDrive' (C:\). It's
really a 'template' of sorts, so there's a few things in there which can be
uncommented or commented if there's a need.


# some examples
#$Conf{NmbLookupCmd} = '/bin/true';
#      
#$Conf{ClientNameAlias} = '192.168.113.113;
        
$Conf{XferLogLevel} = 1;
        
# if at all possible use rsync or rsyncd for the transport mechanism
# it catches changed files more reliably and only transfers the changes
# even with full backups
$Conf{XferMethod} = 'rsyncd';
$Conf{RsyncShareName} = ['cDrive'];
$Conf{RsyncdUserName} = 'backupuser';
$Conf{RsyncdPasswd} = 'XXXXXX';
        
$Conf{BackupFilesExclude} = {
        'docs' => [ 
        '*/Local Settings/Application
Data/Mozilla/Firefox/Profiles/*/Cache/',
        '*/Local Settings/Application Data/Microsoft/Internet
Explorer/Recovery/Active/',
        '*/Local Settings/Temporary Internet Files/*',
        '*/Local Settings/Temp/*', 
        '*/Local Settings/History/', 
        '*/My Documents/My Music',
        '*/My Documents/My Videos',
        '*/My Documents/My Pictures',
        '*/My Documents/Private',
        '*/Cookies/', 
        '*/Favorites/', 
        '*/IETldCache/',
        '*/IECompatCache/',
        '*/NetHood/',  
        '*/PrivacIE/', 
        '*/PrintHood/', 
        '*/WINDOWS/',  
        '*/Recent/', 
        '*/Webex/',
        '*/temp/',
        '*/avg8',
        '*/*.msi',
       '*/NTUSER.DAT',
       '*/NTUSER.DAT.LOG',
       '*/ntuser.dat.LOG',
       '*/UsrClass.dat',
       '*/UsrClass.dat.LOG',
        ],
       'cDrive' => [
        '/RECYCLER',
        '/WINNT',
        '/temp', 
        '/WUTemp', 
        '/WINDOWS', 
        '/System Volume Information',
        '/Documents and Settings/*/Local Settings/Application 
Data/Mozilla/Firefox/Profiles/*/Cache/',
        '/Documents and Settings/*/Local Settings/Application 
Data/Microsoft/Internet Explorer/Recovery/Active/',
        '/Documents and Settings/*/Local Settings/Temporary Internet Files/*',
        '/Documents and Settings/*/Local Settings/History/*',
        '/Documents and Settings/*/Local Settings/Temp/*',
        '/Documents and Settings/*/Cookies/', 
        '/Documents and Settings/*/Favorites/', 
        '/Documents and Settings/*/IETldCache/', 
        '/Documents and Settings/*/IECompatCache/',
        '/Documents and Settings/*/NetHood/', 
        '/Documents and Settings/*/PrivacIE/', 
        '/Documents and Settings/*/PrintHood/',
        '/Documents and Settings/*/WINDOWS/',
        '/Documents and Settings/*/Recent/',
        '/Documents and Settings/*/Webex/',
        '/Documents and Settings/*/temp/',
        '/pagefile.sys',
        '/hiberfil.sys',
       '/Documents and Settings/*/My Documents/My Music',
       '/Documents and Settings/*/My Documents/My Videos',
       '/Documents and Settings/*/My Documents/My Pictures',
       '/Documents and Settings/*/My Documents/Private',
       '/Documents and Settings/*/avg8',
        '*.avi',
        '*.AVI',
        '*.mp3',
        '*.MP3',
        '*.mpg',
        '*.MPG',
        '*/*.msi', 
       '*/NTUSER.DAT',
       '*/NTUSER.DAT.LOG',
       '*/ntuser.dat.LOG',
       '*/UsrClass.dat',
       '*/UsrClass.dat.LOG',
        ]
   };


-- 
Carl Soderstrom
Systems Administrator
Real-Time Enterprises
www.real-time.com

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
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>