#acl RobertRiemann:read,write All:read <> = Task: Integration of new content = == related Presentation Group-Meeting 20.01.09 == *[[RobertRiemann/LogBook/wikiInternal/Presentation]] = Task: Integrate static content in this wiki = == Inventory (Creating an offline-version) == === Download === Following code creates an offline version of an html-page including all its sub-pages: {{{ wget --mirror -p -E --convert-links --http-user=xxx --http-password=xxx http://atlas.desy.de/ }}} A directory {{{atlas.desy.de}}} will be automatically created. The links will be changed, so that they work properly. === Further information about the usage of wget (14.07.2009) === *http://wiki.baduras.net/index.php/Wget *http://www.devarticles.com/c/a/Web-Services/Website-Mirroring-With-wget/1/ === Following code helps to get an overview over the static site === {{{ find atlas.desy.de/ -type f -iregex '[^=]*html$' > content_files cat content_files | wc -l find atlas.desy.de/ -type f -iregex '.*pdf$' > pdf_files cat pdf_files | wc -l # find atlas.desy.de -type f -regex '.*=.*' > directory_listings # cat directory_listings | wc -l }}} {{{wc -l file}}} let you count the number of lines in {{{file}}}. On 14.07.09 I got this for http://www-atlas.desy.de/: {{{ > find atlas.desy.de/ -type f -iregex '[^=]*html$' > content_files > cat content_files | wc -l 36 > find atlas.desy.de/ -type f -iregex '.*pdf$' > pdf_files > cat pdf_files | wc -l 76 }}} <>