On May 25, 2012, at 1:13 PM, Les Mikesell wrote:
> On Fri, May 25, 2012 at 10:39 AM, Charles Craig <ccraig13 AT gmail DOT com>
> wrote:
>> Hello,
>>
>> This has probably been asked before but I couldn't find a way to search the
>> mailing list archive. How do I set the $I_option variable for my
>> ${SmbClientFullCmd}? I want to add the password to it but can't figure out
>> how to set it. Preferably, I would have liked to be able to set
>> the $Conf{SmbSharePasswd} but that doesn't seem to do anything. Thanks!
>>
>
> For recent versions of samba you may need to remove the -N from
> SmbClientFullCmd and SMBClientIncrCmd to make the SmbSharePasswd work.
> Have you already tried that?
>
> --
> Les Mikesell
> lesmikesell AT gmail DOT com
Thanks Les. Yes, I did have the -N removed. I decided to just override the
command in the pl file for that client and add the password directly to the
command.
Here's what the pl file for that client looks like:
$Conf{XferMethod} = 'smb';
$Conf{SmbShareUserName} = 'username';
$Conf{SmbSharePasswd} = 'password'; #This needs to be set in addition to being
manual set in the cmd below
$Conf{SmbShareName} = 'cats';
$Conf{BackupFilesExclude} = '';
$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName password -U
$userName -E -d 1 -c tarmode\\ full -Tc$X_option - $fileList ';
Here's a shortened version of the XferLog after using the above settings:
<log>
Running: /usr/bin/smbclient \\\\192.168.0.50\\cats password -U username -E -d 1
-c tarmode\ full -TcrX -
full backup started for share cats
Xfer PIDs are now 17851,17850
tar_re_search set
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25b-apple]
tarmode is now full, system, hidden, noreset, verbose
pool 644 0/0 6148 .DS_Store
create d 755 0/0 0 _TRANS_IMPORT
create 644 0/0 3699 _TRANS_IMPORT/BatchUpload.csv
pool 644 0/0 334 _TRANS_IMPORT/TRANSACT_IMPORT.CSV
.
.
.
create d 755 0/0 0 Cats
pool 644 0/0 8448 Cats/CATSICON.ICO
pool 644 0/0 461709 Cats/CATSINIT.EXE
pool 644 0/0 9143 Cats/CATSNUM.EXE
create d 755 0/0 0 Cats/CDROM$$.ROM
tarExtract: Done: 0 errors, 6030 filesExist, 819689924 sizeExist, 512299879
sizeExistComp, 6031 filesTotal, 819693623 sizeTotal
Got fatal error during xfer (NT_STATUS_ACCESS_DENIED listing \\*)
Backup aborted (NT_STATUS_ACCESS_DENIED listing \\*)
Not saving this as a partial backup since it has fewer files than the prior one
(got 6031 and 6031 files versus 6031)
</log>
So now I'm at the point where it's running but then fails at that file named
"Cats/CDROM$$.ROM". Are those dollar signs making it explode?
Oddly enough, it runs just fine from the command line running as the backuppc
user:
usr/bin/smbclient \\\\192.168.0.50\\cats password -U username -E -d 1 -c
tarmode\ full -TcrX - > backup.tar
Maybe I'll just go with Rsyncd…This is the only machine giving me problems with
plain old ssh + rsync. I have passwordless keys for all the other machines on
my network but for some reason this machine ( OS X 10.5.8 Server ) refuses to
acknowledge my keys! I even compared my /etc/sshd_config with the other
machines and they're identical ( those machines are also running OS X ).
-charles
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> 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/
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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/
|