Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Feb 2010 18:11:52 +0800
From:      Fbsd1 <fbsd1@a1poweruser.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   FTP using .netrc
Message-ID:  <4B66A8E8.50903@a1poweruser.com>

next in thread | raw e-mail | index | archive | help
Goal is to download the install source directory tree so I can use it as
  an target for local ftp sysinstall.

The problem is that the FreeBSD ftp server keeps timing out before
everything is downloaded. This is the error message ftp gives me.

421 Service not available, remote server timed out. Connection closed

This is the command line command used to launch the ftp session
ftp -v ftp.FreeBSD.org

It defaults to using /root/.netrc which is shown below


machine ftp.FreeBSD.org
login anonymous
password FBSD@home.com
macdef init
prompt off
cd /pub/FreeBSD/releases/i386/8.0-RELEASE
epsv4 off
mget  ERRATA.HTM ERRATA.TXT HARDWARE.HTM HARDWARE.TXT README.HTM
mget  README.TXT RELNOTES.HTM RELNOTES.TXT cdrom.inf docbook.css
$ getdir base catpages dict doc games info kernels manpages ports
proflibs src
quit

macdef getdir
! mkdir $i
mget $i/*


Question is how can I make FTP resume the download at the place it timed
out. IE not start at the beginning and re-download all the same files
all ready received. ftp -vR ftp.FreeBSD.org just starts downloading from
the beginning again.

I tried testing using fetch -avrpAF ftp://ftp.FreeBSD.org but the
/.netrc file is not being defaulted to like when using plan ftp as above.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B66A8E8.50903>