Results 1 to 4 of 4

Thread: wget syntax

  1. #1
    Senior Member
    Join Date
    Mar 2004
    Location
    California
    Posts
    724

    Default 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.

  2. #2
    Junior Member Ihost's Avatar
    Join Date
    Mar 2004
    Location
    Sydney, Australia
    Posts
    22

    Default

    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://username:password@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

  3. #3
    Senior Member
    Join Date
    Mar 2004
    Location
    FL Panhandle
    Posts
    238

    Default

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

  4. #4
    Senior Member
    Join Date
    Mar 2004
    Location
    Winnipeg, MB
    Posts
    257

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •