From a97aa7238b6c9ad0e522456814fcabd07a488e40 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Sun, 24 Mar 2024 04:53:58 +0100 Subject: [PATCH] update --- restore-volumes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore-volumes.sh b/restore-volumes.sh index 909b1a91..2da2aa7f 100755 --- a/restore-volumes.sh +++ b/restore-volumes.sh @@ -43,7 +43,6 @@ restore_files=() cleanup_folders=() for key in $keys; do - echo "Executing command with key: /var/lib/docker/volumes/rpc_$key/_data" volume_name="rpc_$key" newest_file=$(ls -1 "$backup_dir"/"$volume_name"* | sort | tail -n 1) @@ -82,6 +81,7 @@ if [ "$available_space" -lt "$total_space" ]; then fi for folder in $cleanup_folders; do + echo "delete $folder" [ -d "$folder" ] && rm -rf "$folder/*" done