SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Host override does not work - update
Author Message
Post Host override does not work - update 
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' => [
''
]
};

(I don't know if the correct variant is "/path" or /path/*" so I tried
both).

However, when I hit "Start Full Backup" in the web interface, I see
that the override settings are not used. In fact, the smbclient
process looks like this (from ps output):

/usr/local/bin/smbclient \\\\wxpsudakovva\\C$ -U XXXXXXX\\backuppc%XXXXXXXXXXXX -E -d 1 -c tarmode full -Tc -

Why is the per host setting not being applied?

The commands look like
$smbClientPath \\$host\$shareName $I_option -U $userName -E -d 1 -c tarmode\ full -Tc$X_option - $fileList
$smbClientPath \\$host\$shareName $I_option -U $userName -E -d 1 -c tarmode\ full -TcN$X_option $timeStampFile - $fileList

but the $fileList does not seem to ever be passed.

Thanks in advance for any input.

--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov < at > sibptus.tomsk.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.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov < at > sibptus.tomsk.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.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Host override does not work - update 
On 10/14/2011 1:33 AM, Victor Sudakov 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.

(Maybe the docs should say something about how this works in the gui. Currently the docs are mainly geared toward someone hand-editing the files.)

--
Bowie


------------------------------------------------------------------------------
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.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Host override does not work - update 
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.


(Maybe the docs should say something about how this works in the
gui. Currently the docs are mainly geared toward someone
hand-editing the files.)

Maybe it is worth being covered in the FAQ.

--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov < at > sibptus.tomsk.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.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post Host override does not work - update 
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.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.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB