a scriptlet that doesn't backup

main
server 2022-01-20 19:10:02 -07:00
parent df64244d3a
commit ff7e9d2916
1 changed files with 19 additions and 0 deletions

View File

@ -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"