X-Git-Url: https://git.p6c8.net/nextcloud-backup-restore.git/blobdiff_plain/4e167bf7c63ced932faa536946f7b6b22b4c8546..95acb367ebc1a81b2edbe531d74f11bb59393f1a:/NextcloudRestore.sh diff --git a/NextcloudRestore.sh b/NextcloudRestore.sh index a18ecd0..60825b8 100644 --- a/NextcloudRestore.sh +++ b/NextcloudRestore.sh @@ -3,7 +3,7 @@ # # Bash script for restoring backups of Nextcloud. # -# Version 2.3.0 +# Version 2.3.1 # # Requirements: # - pigz (https://zlib.net/pigz/) for using backup compression. If not available, you can use another compression algorithm (e.g. gzip) @@ -29,8 +29,8 @@ set -Eeuo pipefail # Variables -restore=$1 -backupMainDir=$2 +restore=${1:-} +backupMainDir=${2:-} if [ -z "$backupMainDir" ]; then # TODO: The directory where you store the Nextcloud backups (when not specified by args)