samba - using smbget to download multiple files

08
2014-07
  • Samiron

    I need to download multiple files from a video server. The files are available in following ways

    • \\fileserver\directory\file1.txt
    • \\fileserver\directory\file2.txt
    • \\fileserver\directory\file3.txt

    from a suse linux server I am using smbget like below

    smbget smb://fileserver/directory/file1.txt smb://fileserver/directory/file2.txt smb://fileserver/directory/file3.txt
    
    Username: domainname\user
    password: ******
    

    But it downloads only the first file whereas the man page, https://www.samba.org/samba/docs/man/manpages/smbget.1.html clearly says below

    smbget [-a, --guest] [-r, --resume] [-R, --recursive] [-u, --username=STRING] [-p, --password=STRING] [-w, --workgroup=STRING] [-n, --nonprompt] [-d, --debuglevel=INT] [-D, --dots] [-P, --keep-permissions] [-o, --outputfile] [-f, --rcfile] [-q, --quiet] [-v, --verbose] [-b, --blocksize] [-O, --stdout] [-?, --help] [--usage] {smb://host/share/path/to/file} [smb://url2/] [...]

    Isnt it pretty clear that multiple files can be given in a single command? why its not working?

  • Answers
  • user322632

    As per every unix command the second url is destination. If you want to perform multiple downloads you should use the * as in wget.


  • Related Question

    Multiple iTunes audiobook downloads
  • Mike Pateras

    I bought an audiobook on iTunes on my computer. Can I, using the same account, download the file onto my phone, via the iTunes app, without being charged again? Or do I have to sync? I'm afraid to try it, because I know if I am charged, Apple won't give me a re-fund, even though I've already purchased the book.


  • Related Answers
  • goblinbox

    Yes, you can put the file onto your iPhone via iTunes without being charged a second time.