Difference between revisions of "Wget: offline web mirror"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 12: | Line 12: | ||
--convert-links \ | --convert-links \ | ||
--restrict-file-names=windows \ | --restrict-file-names=windows \ | ||
− | --domains | + | --domains itts.ac.id \ |
− | www. | + | www.itts.ac.id |
atau | atau | ||
− | wget --mirror --convert-links --adjust-extension --page-requisites --html-extension --wait=2 --no-parent https://www. | + | wget --mirror --convert-links --adjust-extension --page-requisites --html-extension --wait=2 --no-parent https://www.itts.ac.id/ |
− | wget -mkEpnp https://www. | + | wget -mkEpnp https://www.itts.ac.id/ |
atau | atau | ||
− | wget -mk -w 20 https://www. | + | wget -mk -w 20 https://www.itts.ac.id/ |
− | wget --mirror --convert-links --html-extension --wait=2 -o log https://www. | + | wget --mirror --convert-links --html-extension --wait=2 -o log https://www.itts.ac.id/ |
Revision as of 13:29, 23 September 2021
Berikut adalah perintah untuk melakukan web mirror
mkdir -p /var/www/html/webmirror cd /var/www/html/webmirror
wget \ --recursive \ --no-clobber \ --page-requisites \ --html-extension \ --convert-links \ --restrict-file-names=windows \ --domains itts.ac.id \ www.itts.ac.id
atau
wget --mirror --convert-links --adjust-extension --page-requisites --html-extension --wait=2 --no-parent https://www.itts.ac.id/ wget -mkEpnp https://www.itts.ac.id/
atau
wget -mk -w 20 https://www.itts.ac.id/ wget --mirror --convert-links --html-extension --wait=2 -o log https://www.itts.ac.id/
Ubah permission
chmod -Rf 777 /var/www/html/webmirror chown -Rf nobody: /var/www/html/webmirror