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,

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

you can use something like

cd directory-where-you-want-to-put-the-files
wget -r ftp://ftp.eso.org/pub/qfits/
  • 2
    @PauloMaia "Do not forget…” or “Don't forget…” – ctrl-alt-delor Jun 7 '15 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.