Skip to content

Instantly share code, notes, and snippets.

@Kartoffel
Created October 17, 2017 09:19
Show Gist options
  • Save Kartoffel/8b1b51586e8ba2367541812ebee19cff to your computer and use it in GitHub Desktop.
Save Kartoffel/8b1b51586e8ba2367541812ebee19cff to your computer and use it in GitHub Desktop.
Backup etherpad pads, starting from one pad that contains the URLs of the other pads to backup
curl -o badge https://pad.sha2017.org/p/badge/export/txt
for i in $(cat badge | grep -Po '(?<=pad.sha2017.org\/p\/)(.*)'); do curl -o $i "https://pad.sha2017.org/p/$i/export/txt"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment