I have had to implement a work around under Fedora 7. It all
surrounds getting 'BackupFilesExclude' to work using 'smb'
as the 'Xfermethod'. The main issue is that variable
substitution for the file list does not work.
Xfer.log output for a full backup:
########################################################
Running: /usr/bin/smbclient \\\\$hostname\\C\$ -A
/etc/BackupPC/ADMINISTRATOR -E -d 1 -c tarmode\ full -TcX -
\$filelist
full backup started for share C$
Xfer PIDs are now 18319,18318
Domain=[$HOSTNAME] OS=[Windows 5.0] Server=[Windows 2000
LAN Manager]
tarmode is now full, system, hidden, noreset, verbose
tar: dumped 19 files and directories
Total bytes written: 2752000
create 644 0/0 24 CONFIG.SYS
create 644 0/0 0 AUTOEXEC.001
create 644 0/0 0 IO.SYS
create 644 0/0 0 MSDOS.SYS
create 644 0/0 3119 PCcheck.LOG
create d 755 0/0 0 Recycled
create 644 0/0 65 Recycled/desktop.ini
create 644 0/0 20 Recycled/INFO2
create 644 0/0 0 AUTOEXEC.BAT
create 644 0/0 535248 ntfs.sys
create 644 0/0 1640976 ntoskrnl.exe
create 644 0/0 214432 ntldr
create 644 0/0 34724 NTDETECT.COM
create 644 0/0 192 boot.ini
create 644 0/0 150528 arcldr.exe
create 644 0/0 163840 arcsetup.exe
create 644 0/0 1024 .rnd
create 644 0/0 616 EasyShareInstall.log
create d 755 0/0 0 filename with spaces
tarExtract: Done: 0 errors, 4 filesExist, 0 sizeExist, 0
sizeExistComp, 17 filesTotal, 2744808 sizeTotal
###############################################################
Notice that the $ sign preceding $filelist gets escaped
preventing the list from being read.
Below is the machine config file:
###############################################################
$Conf{SmbClientFullCmd} = '$smbClientPath
\\\\$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-TcX - $filelist';
$Conf{SmbClientIncrCmd} = '$smbClientPath
\\\\$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-TcNX $timeStampFile - Recycled Cache-GoogleEarth FileTrans
gnu/cygPackman tmp RECYCLER System\\ Volume\\ Information
Program\\ Files WINNT WUTEMP pagefile.sys hiberfil.sys';
$Conf{SmbClientRestoreCmd} = '$smbClientPath
\\\\$host\\$shareName -A $userName -E -d 1 -c tarmode\\ full
-Tx -';
$Conf{SmbShareName} = [
'C$'
];
$Conf{SmbShareUserName} = '/etc/BackupPC/ADMINISTRATOR';
$Conf{XferMethod} = 'smb';
$Conf{BackupFilesExclude} = {
'*' => [
'filename\ with\ spaces',
'Recycled'
]
};
################################################################
Please note that on the incremental backup line that I have
listed all the exclude files individually following '-'. If
I substitute that list on the full backup line in my tests,
those files are excluded from the backup.
Now I don't know if this is a problem with the backuppc
script or whether it is a smbclient issue, I haven't tested
it on the command line. I know that in the past I was not
able to get variable substitution to work with smbclient for
the exclude list so that may point to the source of the issue.
I also don't know if regular expressions work for the file
lists or not on Fedora.
Jim Kelly-Rand
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/