Skip to content

Instantly share code, notes, and snippets.

@noreiller
Last active January 4, 2016 16:30
Show Gist options
  • Save noreiller/b8fa730b6ab3a5b6c33c to your computer and use it in GitHub Desktop.
Save noreiller/b8fa730b6ab3a5b6c33c to your computer and use it in GitHub Desktop.
Geeksphone Peak backup scripts
#!/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/
#!/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
#!/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/
#!/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