From 5ca23b719df963fc94b16bf47bf82dae06a6b428 Mon Sep 17 00:00:00 2001 From: server Date: Thu, 20 Jan 2022 18:33:13 -0700 Subject: [PATCH] scriptlet to backup sd --- scripts/pysalx-backup-sd | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/pysalx-backup-sd diff --git a/scripts/pysalx-backup-sd b/scripts/pysalx-backup-sd new file mode 100755 index 0000000..f86884a --- /dev/null +++ b/scripts/pysalx-backup-sd @@ -0,0 +1,12 @@ +#!/bin/bash +# Script to backup the sdcard on the analyzer. +# It will create a timestamped directory. + +set -x + +NOW=`date +%Y%m%d%H%M%S` + +mkdir -p "./$NOW" + +adb pull -a /storage/sdcard0/ "./$NOW" +