Bug 4167 - smbclient tar creation does not stop with specified directories
Summary: smbclient tar creation does not stop with specified directories
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Client Tools (show other bugs)
Version: 3.0.23c
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 16:29 UTC by Kevin Heneveld (dead mail)
Modified: 2020-01-07 23:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Heneveld (dead mail) 2006-10-11 16:29:56 UTC
When creating a tar archive with smbclient, if a share is specified and a subdirectory is specified the subdirectory is backed up and then the rest of the share is also.  The expected result would be for the specified directory do be tar'ed and then the process would terminate.

For example: /usr/bin/smbclient \\\\myworkstation\\C\$ -U DOMAIN/Username -E -N -d 1 -c tarmode\ full -Tc backup.tar /Data

I would expect this to only back up the Data folder on my C$ share.  Instead it backs up /Data and then proceeds to back up all the other files and folders on the root of the C$ share.

Note:  I am actually using '-' in place of 'backup.tar' to collect the data returned (via backuppc)
Comment 1 Holger Hetterich 2010-12-06 09:15:47 UTC
Having Samba 3.5.4 installed, this doesn't happen to me. Can you please try if it works for you with a newer Samba version? 
Comment 2 Björn Jacke 2020-01-07 23:11:53 UTC
works also for me (using the -D parameter)