Add a list backups script.

This commit is contained in:
Captain ALM 2024-08-30 13:35:39 +01:00
parent fe33569a1b
commit 1e5bc85e48
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

17
backup-image/list.sh Executable file
View File

@ -0,0 +1,17 @@
#/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: list.sh [Storage disk root path]";
exit 2;
fi
ssrc="";
if [ -z $1 ]; then
ssrc="/mnt";
else
ssrc="$1";
fi
for cf in $ssrc/tabls/*; do
if [ -e "$cf" ] && [ -f "$cf" ]; then
echo $(basename "$cf" ".tbl");
fi
done
exit 0;