From ed2cf1086c69877113c00ec0ca8ba7b5b407ce7e Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 29 Sep 2016 21:02:19 +0200 Subject: [PATCH] Only remove backup if a new update is triggered to avoid mixed up old files --- nextcloud_update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 0c8653f6..8b25f72e 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -39,10 +39,11 @@ read NCVERSION echo "Upgrading to $NCVERSION in 15 seconds... Press CTRL+C to abort." echo "Disclamer: Tech and Me or Nextcloud is not responsible for any dataloss" -echo "Config files are backed up and Data isn't removed, but things could go wrong." +echo "Config files are backed up and $NCDATA isn't removed, but things could go wrong." sleep 15 # Backup data +rm -R $BACKUP mkdir -p $BACKUP echo "Backing up data..." rsync -Aax $NCPATH/config $BACKUP