Guys, I'm bumping into some stupid problem, really need some fresh ideas.
Samba version
samba-client-2.2.7-3.7.2
samba-2.2.7-3.7.2
samba-swat-2.2.7-3.7.2
samba-common-2.2.7-3.7.2
The goal is to upload all *.gz files only from dir* dirs.
I do
mask *.gz
recurse
mput dir*
See the detailed output below
But mput keeps grabbing non *.gz files ignoring the mask *.gz command.
Am I doing something stupid here?
Thanks,
Ruslan.
[root@www005 root]# cd /var/log/httpd/www/ltest
[root@www005 ltest]# ls -l d*
dir1:
total 608
-rw-r--r-- 1 root root 81543 Mar 4 23:51
Mar-04-2004-www005.driver-access.log.gz
-rw-r--r-- 1 root root 528990 Mar 7 05:46
Mar-07-2004-www005.driver-access.log
dir2:
total 628
-rw-r--r-- 1 root root 99400 Mar 6 23:58
Mar-06-2004-www005.driver-access.log.gz
-rw-r--r-- 1 root root 528990 Mar 7 05:46
Mar-07-2004-www005.driver-access.log
[root@sfa30035www005 ltest]# /usr/bin/smbclient '//x.x.x.x/rawlogs$' -U
xxxxx%XXXXX
...
Domain=[DDD] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
smb: \> mask *.gz
smb: \> recurse
directory recursion is now on
smb: \> mask *.gz
smb: \> mput dir*
Put directory dir2? y
Put file dir2/Mar-06-2004-www005.driver-access.log.gz? y
putting file dir2/Mar-06-2004-www005.driver-access.log.gz as
\dir2\Mar-06-2004-www005.driver-access.log.gz (2426.8 kb/s) (average
2426.8 kb/s)
Put file dir2/Mar-07-2004-www005.driver-access.log? n
Put directory dir1? y
Put file dir1/Mar-07-2004-www005.driver-access.log? n
Put file dir1/Mar-04-2004-www005.driver-access.log.gz? y
putting file dir1/Mar-04-2004-www005.driver-access.log.gz as
\dir1\Mar-04-2004-www005.driver-access.log.gz (3062.8 kb/s) (average
2677.3 kb/s)
smb: \> quit
[root@www005 ltest]#.