BackupPC-users

[BackupPC-users] Cannot Backup SMB Share

2011-10-29 20:50:20
Subject: [BackupPC-users] Cannot Backup SMB Share
From: Alex Machina <amachina AT cavtel DOT net>
To: BackupPC-users AT lists.sourceforge DOT net
Date: Sat, 29 Oct 2011 20:48:46 -0400
The standard configuration does not backup an SMB share. The error message is:

Contents of file /var/lib/BackupPC//pc/pavilion/XferLOG.bad.z, modified
2011-10-29 19:30:09

Running: /usr/bin/smbclient \\\\pavilion\\Users -U amachina -E -N -d 1
-c tarmode\ full -TcrX - full backup started for share Users
Xfer PIDs are now 25227,25226
tar_re_search set
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 7 Professional 7601 Service Pack 1]
Server=[Windows 7 Professional 6.1]
tree connect failed: NT_STATUS_ACCESS_DENIED
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 7 Professional 7601 Service Pack 1]
Server=[Windows 7 Professional 6.1]
tree connect failed: NT_STATUS_ACCESS_DENIED
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0
filesTotal, 0 sizeTotal
Got fatal error during xfer (No files dumped for share Users)
Backup aborted (No files dumped for share Users)
Not saving this as a partial backup since it has fewer files than the prior one
(got 0 and 0 files versus 0)

The configuration settings are:

$Conf{XferMethod} = 'smb';
$Conf{SmbShareName} = 'Users';
$Conf{SmbShareUserName} = 'someuser';
$Conf{SmbSharePasswd} = 'somepasswd';
$Conf{SmbClientPath} = '/usr/bin/smbclient';
$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName
$I_option -U $userName -E -N -d 1 -c tarmode\\ full -Tc$X_option -
$fileList';

Executing the SmbClientFullCmd manually from a terminal window results
in a successful run (after substituting for the parameters
appropriately).

Changing the SmbClientFullCmd to

$smbClientPath //$host/$shareName -A /some/path/.auth -E -N -c
"tarmode full" -Tc -

also fails when run by BackuPC (but not when run from the command
line), but no useful information is provided in the log except:

Started full backup on pavilion (pid=24547, share=Users)
Backup failed on pavilion (No files dumped for share Users)

The host being backed up is Windows 7:

[root@spectra ~]# smbclient -L pavilion -A /home/amachina/.smb.auth
Domain=[PAVILION] OS=[Windows 7 Professional 7601 Service Pack 1]
Server=[Windows 7 Professional 6.1]

        Sharename   Type    Comment
        ---------         ----      -------
        ADMIN$        Disk    Remote Admin
        C$                Disk    Default share
        D$                Disk    Default share
        E$                Disk    Default share
        IPC$             IPC     Remote IPC
        print$            Disk    Printer Drivers
        Users            Disk
Domain=[PAVILION] OS=[Windows 7 Professional 7601 Service Pack 1]
Server=[Windows 7 Professional 6.1]

Note that original error message states that "anonymous login" was
successful, but the intent is to login to the SMB share using the
configured username and password. All attempts to mangle the
parameters to force a login of a specific username/password
combination fail from BackupPC (but work when executed from the
command line).

Anybody have any suggestiions?

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps 
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
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/

<Prev in Thread] Current Thread [Next in Thread>