diff --git a/scripts/pysalx-backup-fs b/scripts/pysalx-backup-fs new file mode 100755 index 0000000..e32b5dd --- /dev/null +++ b/scripts/pysalx-backup-fs @@ -0,0 +1,19 @@ +#!/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" +