Find the answer to your Linux question:
Results 1 to 4 of 4
I am trying to do an ftp download of the installation repository to my intranet web server. I have been trying to use the ftp client in command line. I ...
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    26

    Trying to down the repository (ftp)

    I am trying to do an ftp download of the installation repository to my intranet web server. I have been trying to use the ftp client in command line. I want to copy the whole oss folder at one time to my web directory but I am having problems. So I tried the command "ftp -i ftp://mirrors.kernel.org/opensuse/distribution/10.2/repo/" then "mget ./oss". It copies all the files in the oss folder but none of the directories or the files in those directories. How can I get it to download everything at once ?

  2. #2
    Linux Newbie rudie_rage's Avatar
    Join Date
    Jun 2007
    Location
    Canada
    Posts
    133
    Quote Originally Posted by texanmutt View Post
    I am trying to do an ftp download of the installation repository to my intranet web server. I have been trying to use the ftp client in command line. I want to copy the whole oss folder at one time to my web directory but I am having problems. So I tried the command "ftp -i ftp://mirrors.kernel.org/opensuse/distribution/10.2/repo/" then "mget ./oss". It copies all the files in the oss folder but none of the directories or the files in those directories. How can I get it to download everything at once ?
    is there maybe a -r or -R tag available to descend into directories recursively? Sometimes its hard to find, but its often there in terminal programs.
    Living the digital dream....
    Disclaimer: I may be wrong since I was once before.
    Breathe out so I can breathe you in ~~Everlong

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Your best bet is wget. Also if you fail you can use the -c switch to continue where you left off.
    Code:
    wget -r ftp://domain.tld/path/to/repo
    wget -rc ftp://domain.tld/path/to/repo

  4. #4
    Just Joined!
    Join Date
    Apr 2005
    Posts
    26
    Thanks. It worked great. That was alot of stuff to download. It took about 6 hours.

Posting Permissions

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