pysalx/scripts/pysalx-backup-fs

20 lines
391 B
Bash
Executable File

#!/bin/bash
# Script to backup the / directory on the analyzer.
# It will create a timestamped directory.
# Write script to backup filesystem.
# Just doing / does /proc /sys and a bunch of other
# unneeded dirs. No quick/dirty way to --exclude
# with adb, so build a list of dirs, iterate thru
# that. TODO
exit
set -x
NOW=`date +%Y%m%d%H%M%S`
mkdir -p "./$NOW"
adb pull -a / "./$NOW"