From: Bastian Dehn Date: Sat, 24 May 2025 08:49:52 +0000 (+0200) Subject: show restore mode X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=ffe889c8e255766aa40a76faa995084e217e8017;p=simple-backup.git show restore mode --- diff --git a/restore b/restore index 04e33ce..b37ef76 100755 --- a/restore +++ b/restore @@ -48,7 +48,11 @@ restore() local restore_path="$backup_root/$backup_dir/$remote_machine$path" local remote_path="$remote_user@$remote_machine:$path" - echo "ℹ️ HINT: restore folder must path end with slash" + local mode="directory" + + [[ "$path" =~ /$ ]] || mode="file" + + echo "ℹ️ INFO: restore mode $mode" echo echo "ℹ️ INFO: restore path $restore_path"