aboutsummaryrefslogtreecommitdiff
path: root/backends/tar.sh
diff options
context:
space:
mode:
authorGravatar TheMightyV <themightyv@protonmail.com> 2022-01-02 21:18:02 +0100
committerGravatar TheMightyV <themightyv@protonmail.com> 2022-01-02 21:18:02 +0100
commit8974233a537d2890d75d398bdbdf5ca73152b23b (patch)
treea6af6f42786c9a9ce590da798f000f8001246318 /backends/tar.sh
parent023a18b1d150fc9c09bf6ac135663f7ddce3b757 (diff)
downloadminecraft-server-tools-8974233a537d2890d75d398bdbdf5ca73152b23b.tar.gz
moved from dmenu to bash select, minor cosmetics
Diffstat (limited to 'backends/tar.sh')
-rw-r--r--backends/tar.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/tar.sh b/backends/tar.sh
index b556798..1265992 100644
--- a/backends/tar.sh
+++ b/backends/tar.sh
@@ -40,7 +40,8 @@ function tar_create_backup() {
return $RETCODE
}
-function tar_ls_remote() {
+# server_restore relies on output format of this function
+function tar_ls_dir() {
BACKUP_DIR="$1"
if [[ $BACKUP_DIR == *:* ]]; then
REMOTE="$(echo "$BACKUP_DIR" | cut -d: -f1)"
@@ -51,7 +52,7 @@ function tar_ls_remote() {
fi
}
-function tar_ls() {
+function tar_ls_all() {
for BACKUP_DIR in ${BACKUP_DIRS[*]}
do
echo "Backups in $BACKUP_DIR:"