From ff7e9d2916a8c135ed0b0cca16e9e47918b496ac Mon Sep 17 00:00:00 2001 From: server Date: Thu, 20 Jan 2022 19:10:02 -0700 Subject: [PATCH] a scriptlet that doesn't backup --- scripts/pysalx-backup-fs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/pysalx-backup-fs 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" +