{"id":3949,"date":"2018-03-31T23:42:11","date_gmt":"2018-03-31T21:42:11","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=3949"},"modified":"2018-03-31T23:42:11","modified_gmt":"2018-03-31T21:42:11","slug":"piccole-magie","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2018\/03\/31\/piccole-magie\/","title":{"rendered":"Piccole magie"},"content":{"rendered":"<h1><em><a href=\"https:\/\/medium.com\/mai-piu-senza\/trasformare-un-sito-wordpress-in-un-sito-html-statico-23f5ca5b3028\">Trasformare un sito WordPress in un sito HTML statico<\/a><\/em><\/h1>\n<p><!--more--><!--nextpage--><\/p>\n<blockquote>\n<div class=\"section-inner sectionLayout--insetColumn\">\n<p id=\"3ff9\" class=\"graf graf--p graf-after--h3\">Dovevo fare una copia di un sito WordPress e archiviarlo, ma volevo qualcosa che all\u2019eventuale ripristino non mi costringesse ad installare un database server (alla MySQL) e un server web.<\/p>\n<p id=\"461b\" class=\"graf graf--p graf-after--p\">Ci sono tanti modi per farlo; l\u2019ho fatto con <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/www.gnu.org\/software\/wget\/\" target=\"_blank\" rel=\"nofollow noopener\" data-href=\"https:\/\/www.gnu.org\/software\/wget\/\"><strong class=\"markup--strong markup--p-strong\">Wget<\/strong><\/a>, una arcinota <em class=\"markup--em markup--p-em\">utility open-source <\/em>e sono rimasto di stucco. Questo il comando:<\/p>\n<pre id=\"13d1\" class=\"graf graf--pre graf-after--p\">wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http:\/\/miositowordpress.it\/<\/pre>\n<p id=\"da82\" class=\"graf graf--p graf-after--pre\">Alla fine del processo avrete a disposizione una copia del sito di vostro interesse con tutta la parte dinamica (i link, la navigazione, le immagini, ecc.) diventata statica, un sito basato su PHP e (quasi sempre) MySQL trasformato in pagine HTML. Ho zippato tutto e archiviato.<\/p>\n<p id=\"46ba\" class=\"graf graf--p graf-after--p graf--trailing\">Proprio un <strong class=\"markup--strong markup--p-strong\">barbatrucco<\/strong>, che ho scoperto <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/web.archive.org\/web\/20160401065726\/http:\/\/blog.jphoude.qc.ca\/2007\/10\/16\/creating-static-copy-of-a-dynamic-website\/\" target=\"_blank\" rel=\"nofollow noopener\" data-href=\"https:\/\/web.archive.org\/web\/20160401065726\/http:\/\/blog.jphoude.qc.ca\/2007\/10\/16\/creating-static-copy-of-a-dynamic-website\/\">qui<\/a> (non va bene per tutto e ha qualche limite).<\/p>\n<\/div>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Trasformare un sito WordPress in un sito HTML statico<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2018\/03\/31\/piccole-magie\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[72,14,46],"tags":[],"class_list":["post-3949","post","type-post","status-publish","format-standard","hentry","category-documentations","category-software-libero","category-web"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-11H","jetpack-related-posts":[{"id":7139,"url":"https:\/\/monodes.com\/predaelli\/2020\/04\/27\/archiving-a-wordpress-website-with-wget-darcy-norman-dot-net\/","url_meta":{"origin":3949,"position":0},"title":"Archiving a (WordPress) website with wget &#8211; D&#8217;Arcy Norman dot net","author":"Paolo Redaelli","date":"2020-04-27","format":"link","excerpt":"Archiving a (WordPress) website with wget - D'Arcy Norman dot net Make Offline Mirror of a Site using `wget` Archiving a (WordPress) website with wget \u00a0Posted on December 24, 2011 I needed to archive several WordPress sites as part of the process of gathering the raw data for my thesis\u2026","rel":"","context":"In &quot;Web&quot;","block_context":{"text":"Web","link":"https:\/\/monodes.com\/predaelli\/category\/web\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5338,"url":"https:\/\/monodes.com\/predaelli\/2019\/03\/10\/before-curl-there-were-wget\/","url_meta":{"origin":3949,"position":1},"title":"Before cURL there were wget!","author":"Paolo Redaelli","date":"2019-03-10","format":false,"excerpt":": What is cURL and why is it all over API docs? \u2013 Amara Graham \u2013 Medium Well, wget is also there since, well, 1996!! :)","rel":"","context":"In &quot;Fun&quot;","block_context":{"text":"Fun","link":"https:\/\/monodes.com\/predaelli\/category\/fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12892,"url":"https:\/\/monodes.com\/predaelli\/2025\/03\/06\/how-to-download-all-pdf-files-linked-from-a-single-page-using-wget\/","url_meta":{"origin":3949,"position":2},"title":"How to download all PDF files linked from a single page using wget","author":"Paolo Redaelli","date":"2025-03-06","format":false,"excerpt":"You can use wget to download all PDFs from a webpage by using: wget -r -l1 -H -t1 -nd -N -np -A.pdf -erobots=off --wait=2 --random-wait --limit-rate=20k [URL] -r: Recursive download. -l1: Only one level deep (i.e., only files directly linked from this page). -H: Span hosts (follow links to other\u2026","rel":"","context":"In &quot;Tricks&quot;","block_context":{"text":"Tricks","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/tricks\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6905,"url":"https:\/\/monodes.com\/predaelli\/2020\/03\/14\/jitsi-installazione-su-vps\/","url_meta":{"origin":3949,"position":3},"title":"Jitsi-installazione-su-vps","author":"Paolo Redaelli","date":"2020-03-14","format":false,"excerpt":"Software libero a scuola\/Jitsi-installazione-su-vps Da Wikibooks, manuali e libri di testo liberi. Lo riporto qui solo per comodit\u00e0, ringraziando gli autori della pagina ma soprattutto gli sviluppatori di Meet Jitsi, programma libero quantomai prezioso in questo periodo di CoronaVirus Installazione del software open-source Jitsi-Meet su proprio server Linux. INSTALLAZIONE JITSI\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6480,"url":"https:\/\/monodes.com\/predaelli\/2020\/01\/25\/advanced-cli-commands-you-should-know-as-a-developer\/","url_meta":{"origin":3949,"position":4},"title":"Advanced CLI: Commands You Should Know as a Developer","author":"Paolo Redaelli","date":"2020-01-25","format":"link","excerpt":"Advanced CLI: Commands You Should Know as a Developer May I feel a little proud when I tell you I know them all? :) Advanced CLI: Commands You Should Know as a Developer Advanced commands; get more done No, in this article we won\u2019t go over the basic commands like\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8913,"url":"https:\/\/monodes.com\/predaelli\/2021\/11\/15\/i-know-them-all\/","url_meta":{"origin":3949,"position":5},"title":"I know them all","author":"Paolo Redaelli","date":"2021-11-15","format":false,"excerpt":"Linux Networking Commands That You Must Know | by Vikram Gupta | Nov, 2021 | Level Up Coding Fine, I know and use them all: ifconfig traceroute tracepath ping netstat hostname curl wget whois scp ssh","rel":"","context":"In &quot;Fun&quot;","block_context":{"text":"Fun","link":"https:\/\/monodes.com\/predaelli\/category\/fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/3949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=3949"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/3949\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=3949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=3949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=3949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}