Hello,

My colleague wrote this little shell script that we use to take the static pages offline. Use it at your own risk.

#!/bin/sh
wget -q -mirror -p --html-extension --base=./ -k -P ./ http://example.com/drupal
cd ./example.com/drupal
cp -rf /srv/www/htdocs/example.com/drupal/modules .
cp -rf /srv/www/htdocs/example.com/drupal/themes .
find ./ -type f -exec sed -i 's/@import "\/drupal/@import "\.\./' {} \;
find ./ -maxdepth 1 -type f -exec sed -i 's/@import "\.\.\//@import "\.\//' {} \;

Thanks.