Last active
January 4, 2016 16:30
-
-
Save noreiller/b8fa730b6ab3a5b6c33c to your computer and use it in GitHub Desktop.
Geeksphone Peak backup scripts
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
#!/bin/sh | |
BACKUP_DATE=`date +%Y-%m-%d_%H-%M-%S` | |
BACKUP_DIR="~/PEAK/BACKUPS/$BACKUP_DATE" | |
mkdir -p "$BACKUP_DIR" | |
cd "$BACKUP_DIR" | |
sudo adb pull /data/local/storage/persistent/ |
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
#!/bin/sh | |
BACKUP_DATE=`date +%Y-%m-%d_%H-%M-%S` | |
BACKUP_DIR="~/PEAK/BACKUPS/$BACKUP_DATE" | |
mkdir -p "$BACKUP_DIR" | |
cd "$BACKUP_DIR" | |
sudo adb pull /data/local/storage/persistent/chrome/idb/3406066227csotncta.sqlite | |
mkdir 3406066227csotncta | |
sudo adb pull /data/local/storage/persistent/chrome/idb/3406066227csotncta 3406066227csotncta | |
sudo adb pull /data/local/storage/persistent/chrome/idb/226660312ssm.sqlite | |
mkdir 226660312ssm | |
sudo adb pull /data/local/storage/persistent/chrome/idb/226660312ssm 226660312ssm | |
sudo adb pull /data/local/storage/persistent/chrome/idb/4045445992aslmar.sqlite |
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
#!/bin/bash | |
BACKUP_DATE=`date +%Y-%m-%d_%H-%M-%S` | |
BACKUP_DIR="~/PEAK/BACKUPS/$BACKUP_DATE" | |
cd "$BACKUP_DIR" | |
sudo adb push ./ /data/local/storage/persistent/ |
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
#!/bin/bash | |
BACKUP_DATE=`date +%Y-%m-%d_%H-%M-%S` | |
BACKUP_DIR="~/PEAK/BACKUPS/$BACKUP_DATE" | |
cd "$BACKUP_DIR" | |
sudo adb push 3406066227csotncta.sqlite /data/local/storage/persistent/chrome/idb/3406066227csotncta.sqlite | |
sudo adb push 3406066227csotncta /data/local/storage/persistent/chrome/idb/3406066227csotncta | |
sudo adb push 226660312ssm.sqlite /data/local/storage/persistent/chrome/idb/226660312ssm.sqlite | |
sudo adb push 226660312ssm /data/local/storage/persistent/chrome/idb/226660312ssm | |
sudo adb push 4045445992aslmar.sqlite /data/local/storage/persistent/chrome/idb/4045445992aslmar.sqlite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment