Wget notes

From Federal Burro of Information
Jump to navigationJump to search

sample config, use .netrc not .wgetrc

machine servername login mylogin password mypassword


sample script:

isengard
cd /data/updates
wget -r -nH --cut-dirs=3 ftp://updates.redhat.com/8.0/en/os/noarch
wget -r -nH --cut-dirs=3 ftp://updates.redhat.com/8.0/en/os/i386
wget -r -nH --cut-dirs=3 ftp://updates.redhat.com/8.0/en/os/i686