Skip to content

Instantly share code, notes, and snippets.

@GuyPaddock
Last active December 11, 2018 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuyPaddock/730d0aa127d498553a3a69686bd0a32a to your computer and use it in GitHub Desktop.
Save GuyPaddock/730d0aa127d498553a3a69686bd0a32a to your computer and use it in GitHub Desktop.
Crude HP Touchpad WebOS Backup Script (run with `nohup` for best results over SSH; errors appear in errors.log)
#!/usr/bin/env sh
cd /media/cryptofs
tar -cvpjf webos-backup.tbz2 \
--exclude=/proc \
--exclude=/media/internal \
--exclude=/tmp \
--exclude=/dev \
--exclude=/sys \
--exclude=/var/run \
--exclude=/media/cryptofs/webos-backup.tbz2 \
--exclude=/media/cryptofs/nohup.out \
--exclude=/media/cryptofs/errors.log \
/ \
2>errors.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment