Last active
June 7, 2024 12:56
-
-
Save mafredri/e572ff7fa380a5355a8098a8ff9d3d82 to your computer and use it in GitHub Desktop.
Scripts for the reMarkable tablet (backup and factory reset)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creates remarkable_backup-(date).tar.gz with todays date, backs up /home/root. | |
( | |
ssh root@10.11.99.1 'tar cf - .' \ | |
| gzip >remarkable_backup-$(date '+%Y-%m-%d').tar.gz | |
) 2 >err.log | |
cat err.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This deletes most (all?) user generated files from the reMarkable | |
# and reboots it so that no traces of data or networks are left. | |
ssh root@10.11.99.1 'rm -rv \ | |
~/.ssh \ | |
~/.config/remarkable/xochitl.conf \ | |
~/.local/share/remarkable/xochitl/* \ | |
~/log.txt \ | |
~/.bash_history \ | |
~/.viminfo \ | |
~/.vim/tmp \ | |
/var/db/*.lease \ | |
/var/lib/misc/udhcpd.leases \ | |
/var/log/journal/*/*.journal* \ | |
/var/log/wtmp \ | |
; \ | |
/sbin/reboot' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment