Re: [BackupPC-users] excludes for smb HOWTO

2013-11-06 Thread Holger Parplies
Hi,

boospy wrote on 2013-10-29 04:12:02 -0700 [[BackupPC-users]  excludes for smb 
HOWTO]:
 Hi, 
 
 does this also work with backuppc 3.2.1 und Samba 3.6 include with shares 
 from Windowsserver 2008r2 ?
 
 Best Regards
 boospy
 
 +--
 |This was sent by li...@osit.cc via Backup Central.
 |Forward SPAM to ab...@backupcentral.com.
 +--

this always works, correct reference assumed.

Hope that helps.

Regards,
Holger

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] excludes for smb HOWTO

2013-10-29 Thread boospy
Hi, 

does this also work with backuppc 3.2.1 und Samba 3.6 include with shares from 
Windowsserver 2008r2 ?

Best Regards
boospy

+--
|This was sent by li...@osit.cc via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] excludes for smb HOWTO

2010-09-22 Thread Chris Purves
I had a lot of trouble when trying to exclude certain files and directories for 
a backup using smb for the transfer method.  I was unable to find solutions in 
this mailing list or the samba mailing list and so I did a bunch of testing 
with smbclient.  I found that for smbclient to properly match it was necessary 
to use '\' for directory separators (not '/') and in addition the last 
separator must be a double backslash ('\\') and in addition to that each 
backslash must be escaped with, of course, a backslash. (quadruple backslash in 
places)

An example:

$Conf{BackupFilesExclude} = {
   '*' = [
 'Application Data',
 '\\DocumentsMy Music',
 '\\Downloads\\big_filesdebian_install_dvd.iso
 'ntuser.dat.LOG1',
 '*.lock',
 '*\\Thumbs.db',
 '*\\.*'
   ]
};

In the above example, the Application Data directory is excluded.  To exclude 
\Documents\My Music, the quadruple backslash is placed before My Music and 
not Documents.  Next the file debian_install_dvd.iso in the directory 
Downloads\big_files is excluded.  Note again that the last directory 
separator has a quadruple backslash.  The next line excludes the file 
ntuser.dat.LOG1 in the root directory.  The next line excludes any .lock 
file.  Note that the asterisk at the beginning not only matches the first part 
of the filename but also the directory tree.  When matching files it is 
necessary to match the directories as well, which leads to the next line which 
excludes the Thumbs.db file found in any directory.  The last line excludes 
any file or directory which begins with '.'.

Note that if you use the BackupPC GUI, the backslashes do not need to be 
escaped.  You can use single and double backslashes instead of double and 
quadruple.

This is how it worked for me using BackupPC 3.1.0 with samba 3.2.5 on Debian 
Lenny backing up a Windows Vista computer.  Since I can't imagine that this is 
how it's supposed to work you may or may not get the same results with 
different versions of samba or Windows or whatever.  But hopefully others are 
able to make use of my own trials and heartache.

-- 
Chris Purves

I can calculate the motion of heavenly bodies, but not the madness of people. 
- Sir Isaac Newton

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/