Wget notes

From Federal Burro of Information
Revision as of 03:09, 29 May 2023 by David (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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