Add a list backups script.
This commit is contained in:
parent
fe33569a1b
commit
1e5bc85e48
17
backup-image/list.sh
Executable file
17
backup-image/list.sh
Executable 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;
|
Loading…
Reference in New Issue
Block a user