Benutzer-Werkzeuge

Webseiten-Werkzeuge


heiko:tipps:hilfsprogramme:tipp_wget_01

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
heiko:tipps:hilfsprogramme:tipp_wget_01 [2018/08/18 20:49]
Heiko Teichmeier
heiko:tipps:hilfsprogramme:tipp_wget_01 [2018/08/20 13:56] (aktuell)
Zeile 3: Zeile 3:
 date issued = 2018-08-18 date issued = 2018-08-18
 ~~ ~~
-{{tag>[linux hilfsprogramm ftp web http https download wget grabber syntax befehle heiko_teichmeier glauchau sachsen]}}+{{tag>linux hilfsprogramm ftp web http https download wget grabber syntax befehle heiko_teichmeier glauchau sachsen}}
 ===== wget (1) - Die Antwort auf (fast) alle HTTP-, HTTPS- und FTP-Download-Fragen ===== ===== wget (1) - Die Antwort auf (fast) alle HTTP-, HTTPS- und FTP-Download-Fragen =====
 __letzte inhaltliche Überarbeitung:__ 18.08.2018 __letzte inhaltliche Überarbeitung:__ 18.08.2018
Zeile 276: Zeile 276:
 </sxh> </sxh>
  
-==== 2.6 Beispiele ====+==== 2.6 Optionen für Nutzung von Proxy-Servern ==== 
 +__Proxy-Server als Umgebungs-Variable "exportieren":__ 
 +<sxh bash; gutter: false> 
 +export https_proxy="https://proxy.local.biz:3128/" 
 +wget --http-user="USER" --http-password="PASSWORT" wget https://www.linux-magazin.de/foo/bar.html 
 +</sxh> 
 +__Proxy-Server + -User + -Passwort als Umgebungs-Variable "exportieren":__ 
 +<sxh bash; gutter: false> 
 +export https_proxy="https://PROXY-USERNAME:PROXY-PASSWORT@SERVER-NAME:PORT/" 
 +</sxh> 
 +__Mit Beispieldaten:__ 
 +<sxh bash; gutter: false> 
 +export https_proxy="https://heiko:GeheimesPasswort@proxy.local.biz:3128/" 
 +wget https://www.linux-magazin.de/foo/bar.html 
 +</sxh> 
 + 
 +==== 2.7 Beispiele ====
 === Spiegelung des SuSE-update-Mirrors: === === Spiegelung des SuSE-update-Mirrors: ===
 <sxh bash; gutter: false> <sxh bash; gutter: false>
Zeile 301: Zeile 317:
   * im aktuellen Verzeichnis wird folgende Struktur angelegt:   * im aktuellen Verzeichnis wird folgende Struktur angelegt:
  
-   +-ftp.mcafee.com +  +-ftp.mcafee.com 
-   +  
-   +--+-pub +  +--+-pub 
-      +     
-      +--+-antivirus +     +--+-antivirus 
-         +        
-         +--+-datfiles +        +--+-datfiles 
-            +           
-            +--4.x -- Dateien+           +--4.x -- Dateien
  
   * es werden die Dateien und Unterverzeichnisse aus dem "4.x"-Verzeichnis kopiert   * es werden die Dateien und Unterverzeichnisse aus dem "4.x"-Verzeichnis kopiert
  
- +<sxh bash; gutter: false>
-~~~~~~~~~~~~~~~~~~+
 lin-server:/ftp-mirror #  lin-server:/ftp-mirror # 
 wget -t 5 -m -c -nH ftp://ftp.mcafee.com/pub/antivirus/datfiles/4.x/ --limit-rate=65k --proxy=off wget -t 5 -m -c -nH ftp://ftp.mcafee.com/pub/antivirus/datfiles/4.x/ --limit-rate=65k --proxy=off
 +</sxh>
  
-Ergebnis: +== Ergebnis: == 
-========= +  im aktuellen Verzeichnis wird folgende Struktur angelegt:
-im aktuellen Verzeichnis wird folgende Struktur angelegt:+
  
---/pub-+ +  +-pub 
-   +  
-   +--antivirus +  +--+-antivirus 
-      +     
-      +--datfiles +     +--+-datfiles 
-         +        
-         +--4.x -- Dateien+        +--4.x -- Dateien
  
- +<sxh bash; gutter: false>
-~~~~~~~~~~~~~~~~~~+
 lin-server:/ftp-mirror #  lin-server:/ftp-mirror # 
 wget -t 5 -m -c -nH ftp://ftp.mcafee.com/pub/antivirus/datfiles/4.x/ --limit-rate=65k --proxy=off --cut=4 wget -t 5 -m -c -nH ftp://ftp.mcafee.com/pub/antivirus/datfiles/4.x/ --limit-rate=65k --proxy=off --cut=4
 +</sxh>
  
-Ergebnis: +== Ergebnis: == 
-========= +  im aktuellen Verzeichnis werden nur im Verzeichnis "4.x" vorhandene Unterverzeichnisse angelegt
-im aktuellen Verzeichnis werden nur im Verzeichnis "4.x" vorhandene Unterverzeichnisse  +
-angelegt +
  
 +<sxh bash; gutter: false>
 lin-server:/ftp-mirror #  lin-server:/ftp-mirror # 
 wget -t 5 -m -c ftp://ftp.mcafee.com/pub/antivirus/datfiles/4.x/ --limit-rate=65k --proxy=off wget -t 5 -m -c ftp://ftp.mcafee.com/pub/antivirus/datfiles/4.x/ --limit-rate=65k --proxy=off
 +</sxh>
  
 +<sxh bash; gutter: false>
 lin-server:/ftp-mirror # lin-server:/ftp-mirror #
 wget -t 5 -m -c ftp://ftp.mcafee.com/pub/datfiles/german/ --limit-rate=65k --proxy=off wget -t 5 -m -c ftp://ftp.mcafee.com/pub/datfiles/german/ --limit-rate=65k --proxy=off
 +</sxh>
  
 +<sxh bash; gutter: false>
 lin-server:/ftp-mirror # lin-server:/ftp-mirror #
 wget -t 5 -m -c -nH ftp://ftp.mcafee.com/pub/antivirus/datfiles/4.x/ --limit-rate=65k --proxy=off wget -t 5 -m -c -nH ftp://ftp.mcafee.com/pub/antivirus/datfiles/4.x/ --limit-rate=65k --proxy=off
 +</sxh>
  
-~~~~~~~~~~~~~~~~~~+**Option "-A .zip"** - nur *.zip-Dateien werden abgerufen 
 +<sxh bash; gutter: false>
 lin-server:/ftp-mirror # lin-server:/ftp-mirror #
 wget -t 5 -m -c -A .zip ftp://ftp.mcafee.com/pub/datfiles/german/ --limit-rate=65k --proxy=off wget -t 5 -m -c -A .zip ftp://ftp.mcafee.com/pub/datfiles/german/ --limit-rate=65k --proxy=off
-  | +</sxh>
-  +--Option "-A .zip" +
-       ================ +
-       | +
-       +--> nur *.zip-Dateien werden abgerufen+
  
- +**Option "-A .zip,.ini"** - nur *.zip- und *.ini-Dateien werden abgerufen 
-~~~~~~~~~~~~~~~~~~+<sxh bash; gutter: false>
 lin-server:/ftp-mirror # lin-server:/ftp-mirror #
 wget -t 5 -m -c -A .zip,.ini ftp://ftp.mcafee.com/pub/datfiles/german/ --limit-rate=65k --proxy=off wget -t 5 -m -c -A .zip,.ini ftp://ftp.mcafee.com/pub/datfiles/german/ --limit-rate=65k --proxy=off
-  | +</sxh>
-  +--Option "-A .zip,.ini" +
-       ===================== +
-       | +
-       +--> nur *.zip- und *.ini-Dateien werden abgerufen+
  
heiko/tipps/hilfsprogramme/tipp_wget_01.1534618151.txt.gz · Zuletzt geändert: 2018/08/18 20:49 von Heiko Teichmeier