FTP using .netrc

2010-02-01 Thread Fbsd1

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 f...@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.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FTP using .netrc

2010-02-01 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/02/2010 10:11, Fbsd1 wrote:

 
 machine ftp.FreeBSD.org
 login anonymous
 password f...@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.

Change your 'mget' commands into 'mreget'

Or just use wget in mirror-mode...

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktmrGcACgkQ8Mjk52CukIzm9ACghwg5MhvKCSqAca621AKg6It/
iD4An3/4spV6EeaCkizbTyKKRFZRNKeC
=dHOF
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FTP using .netrc

2010-02-01 Thread J65nko
On Mon, Feb 1, 2010 at 11:11 AM, Fbsd1 fb...@a1poweruser.com wrote:
 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 f...@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.

That .netrc looks familiar ;)

I never had that issue, but I always used a ftp mirror site listed in
the handbook, instead
of one of the busiest ftp sites in the world .;)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org