wget syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Hagan
    Senior Member
    • Mar 2004
    • 724

    #1

    wget syntax

    Need some guidance from any linux gurus out there. None of my reference books are helping, although it may be because of a security issue on the server I am trying wget files from.

    wget -nH -r --cut-dirs=1 http://www.mydomain.tld/images/
    I tried several iterations of the above, and would get the entire site, rather than just getting the /images/ directory. The third time I tried, I was somehow higher in the file directories, and slurping files from the root somehow that were not in the site itself (it is a shared server, but a IIS box).

    Anyway, what I'm trying to do during a SSH session is copy all the files from the URL into the current directory I'm in.
  • Ihost
    Junior Member
    • Mar 2004
    • 22

    #2
    Not sure if this helps but this is the syntax that I use to get files from a remote server when moving accounts to or from Dathorn.
    From the public_html directory,
    "wget -r -nc ftp://usernameassword@ftp.mine.com/httpdocs/".
    There was a really good discussion on this on the old forums, so hopefully the technical gurus will also jump in on this one.
    Kerry Slavin
    Reliable Solution Internet Services
    For the best independent support for webhosts & their customers visit -
    JointSupportForum.Com

    Comment

    • openbox
      Senior Member
      • Mar 2004
      • 238

      #3
      "wget -nc -r http://mydomain.tld/images" should work.

      Comment

      • Andy
        Senior Member
        • Mar 2004
        • 257

        #4
        This should be added to FAQ or sticky. Handy to know
        Andy

        Comment

        Working...