BackupPC-users

[BackupPC-users] Using Wildcards in include file paths.

2010-11-02 11:31:37
Subject: [BackupPC-users] Using Wildcards in include file paths.
From: swisstone <backuppc-forum AT backupcentral DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Tue, 02 Nov 2010 11:29:34 -0400
Using Wildcards in include file paths. 
The page on the wiki might help: 

http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Smb_exclude 

Just remember that with smb you can either include specific 
directories/files within a share, or exclude. You cannot do both. 

There is a nice recipe I have used previously for the standard excludes 
on a WinXp/Vista etc setup, but I can't find a link for it. 

-------------------

Many thanks for everyones help! 
I have re-thought my stratergy and chosen to exclude folders rather than select 
what to include!
Here is a brief guide if its any help....


1 - set up my excludes -  see 
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Smb_exclude 
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Common_backup_excludes
 

I have set a DHCP scope for the clients I wish to backup.

To ensure all machines are picked up I have generated a list of all PC's from 
active directory. 

const FileName ="hosts"
set cmd = createobject&#40;"ADODB.Command"&#41;
set cn = createobject&#40;"ADODB.Connection"&#41;
set rs = createobject&#40;"ADODB.Recordset"&#41;

cn.open "Provider=ADsDSOObject;"
cmd.activeconnection = cn

set objRoot = getobject&#40;"LDAP&#58;//RootDSE"&#41;

cmd.commandtext = "<LDAP&#58;//" & objRoot.get&#40;"defaultNamingContext"&#41; 
& ">;&#40;objectCategory=Computer&#41;;" & _
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 
"name,operatingsystem,operatingsystemservicepack, 
operatingsystemversion;subtree"
'**** Bypass 1000 record limitation ****
cmd.properties&#40;"page size"&#41;=1000

set rs = cmd.execute
set objFSO = createobject&#40;"Scripting.FileSystemObject"&#41;
set objCSV = objFSO.createtextfile&#40;FileName&#41;


objcsv.writeline&#40;"host&nbsp; &nbsp; &nbsp; &nbsp; dhcp&nbsp; &nbsp; 
user&nbsp; &nbsp; moreUsers"&#41;
&nbsp; &nbsp;rs.movenext

while rs.eof <> true and rs.bof <> true
&nbsp; &nbsp;objcsv.writeline&#40;rs&#40;"name"&#41; & "&nbsp; 1&nbsp; 
tonys"&#41;
&nbsp; &nbsp;rs.movenext
wend

objCSV.Close
cn.close

'wscript.echo "Finished"

I have set this script to run as a schedules task on a Windows Server 2003 
machine and copy it to the /etc/backuppc/hosts file on a daily basis. (set up 
the folder as a samba share.)

This will keep my list of pc's to backup syncronised with my active directory.

Hope this is of some use to others.

Tony

+----------------------------------------------------------------------
|This was sent by work AT twopauls.plus DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
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/