Skip to content

Instantly share code, notes, and snippets.

@stepney141
Created April 22, 2021 08:52
Show Gist options
  • Save stepney141/9b503bd71cdd40fe21453c63a4023796 to your computer and use it in GitHub Desktop.
Save stepney141/9b503bd71cdd40fe21453c63a4023796 to your computer and use it in GitHub Desktop.
#!/bin/bash
# ref: https://webapps.stackexchange.com/questions/115369/how-to-archive-the-whole-website
wget -m -nv -o logfile.txt $1
find . -name '*.htm' -or -name '*.html' -exec curl -v "https://web.archive.org/save/https://{}" ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment