2

I've been searching and I cannot find an answer on any of these sites that will work. I want to copy all of the contents of this folder to my server. Which Linux command should I use to do that? I don't want to manually run through all of the objects in that folder, one at a time per se. I've seen everything from scp to rsync, but can't get either to work.

Thanks,

2
  • Is sshd installed on the remove pc?
    – Johan
    Commented Jun 7, 2015 at 18:43
  • @Johan It's not my server I'm trying to copy the files from
    – bjd2385
    Commented Jun 8, 2015 at 1:47

2 Answers 2

4

you can use something like

cd directory-where-you-want-to-put-the-files
wget -r ftp://ftp.eso.org/pub/qfits/
1
  • 2
    @PauloMaia "Do not forget…” or “Don't forget…” Commented Jun 7, 2015 at 18:42
2

FTP?

#!/bin/sh
# ftp://ftp.eso.org/pub/qfits/
HOST='ftp.eso.org'
USER='anonymous'
PASSWD='<your.email.address>'

ftp -n $HOST <<EOF
quote USER $USER
quote PASS $PASSWD
prompt off
cd /pub/qfits
ls
mget *
quit
EOF
exit 0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .