Bowie Bailey wrote:
> >>> It seems that the per-host config *does* work. After I have changed it
> >>> (from the Web interface again) to:
> >>>
> >>> $Conf{SmbShareName} = [
> >>> 'test',
> >>> ''
> >>> ];
> >>>
> >>> the smbclient is now being run as
> >>> /usr/local/bin/smbclient \\\\wxpsudakovva\\test ....
> >>>
> >>> So it is just the problem with $fileList not being passed to
> >>> smbclient. Can anyone help?
> >>>
> >>> Victor Sudakov wrote:
> >>>> Colleagues,
> >>>>
> >>>> I am trying backuppc-3.2.1 on FreeBSD 8.1-RELEASE (from ports).
> >>>>
> >>>> I have edited some host parameters in the Web Configuration Editor, it
> >>>> created the /usr/local/etc/backuppc/pc/wxpsudakovva.pl file with the
> >>>> following contents:
> >>>>
> >>>> $Conf{BackupFilesOnly} = {
> >>>> '/Drivers/*' => [
> >>>> '',
> >>>> ''
> >>>> ],
> >>>> '/oracle' => [
> >>>> ''
> >>>> ]
> >>>> };
> >> This is a VERY common misconfiguration. The excludes (and includes) are
> >> of the format:
> >>
> >> 'ShareName' => [ 'Exclusion1', 'Exclusion2' ]
> >>
> >> So your config should probably look like this:
> >>
> >> $Conf{SmbShareName} = [
> >> 'test'
> >> ];
> >>
> >> $Conf{BackupFilesOnly} = {
> >> 'test' => [
> >> '/Drivers/*',
> >> '/oracle'
> >> ]
> >> };
> >>
> >> In the Web editor, the "New Key" is either the sharename or * (if it
> >> should apply to all shares). Once you add the key, there will be a
> >> place to add file/directory names.
> > Thank you Bowie, but can I see a screenshot? I feel comfortable with
> > text configs, but the backuppc installation will be run by
> > Windows-type people. At least they will be adding hosts and selecting
> > documents to backup.
>
> Ok. Here's a piece of a screenshot. (sample host created for test
> purposes only)
Thank you for the screenshot. Now I grasp the idea behind the GUI.
However, now as the per-host config looks like this:
$Conf{BackupFilesOnly} = {
'C$' => [
'*.doc',
'*.xls'
]
};
$Conf{SmbShareName} = [
'C$'
];
The resulting command (from ps) is:
/usr/local/bin/smbclient \\\\shr2wxpdispatch\\C$ -I 10.14.135.25 -U XXXXXXXXXXX
-E -d 1 -c tarmode full -Tc - *.doc *.xls
Which causes the following error log:
Running: /usr/local/bin/smbclient \\\\shr2wxpdispatch\\C\$ -I 10.14.135.25 -U
XXXXXXXXXXX -E -d 1 -c tarmode\ full -Tc - \*.doc \*.xls
full backup started for share C$
Xfer PIDs are now 1384,1383
creating lame upcase table
creating lame lowcase table
Domain=[SIBPTUS] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tarmode is now full, system, hidden, noreset, verbose
NT_STATUS_NO_SUCH_FILE listing \*.doc
NT_STATUS_NO_SUCH_FILE listing \*.xls
tar: dumped 0 files and directories
The config.pl is as follows:
#
$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U
$userName -E -d 1 -c tarmode\\ full -Tc$X_option - $fileList';
Maybe $SmbClientFullCmd should be modified?
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov AT sibptus.tomsk DOT ru
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
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/
|