Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-05-10 23:21:07 +0300
committernachoparker <nacho@ownyourbits.com>2018-05-11 09:54:11 +0300
commitdbc3094674d0b449ba4a5752298e01153e01c0f5 (patch)
tree20051df25d09f97166df0e50c3bd33fb1db0ed3d
parent5dca2501778c34aff9247bfe5fe1e207db0e9bad (diff)
nc-backup: better avoid duplicatesv0.54.8
-rw-r--r--etc/ncp-config.d/nc-backup.sh2
-rwxr-xr-xupdate.sh6
2 files changed, 7 insertions, 1 deletions
diff --git a/etc/ncp-config.d/nc-backup.sh b/etc/ncp-config.d/nc-backup.sh
index 0a1c1a3a..8ac7b118 100644
--- a/etc/ncp-config.d/nc-backup.sh
+++ b/etc/ncp-config.d/nc-backup.sh
@@ -30,7 +30,7 @@ INCLUDEDATA="${2:-no}"
COMPRESS="${3:-no}"
BACKUPLIMIT="${4:-4}"
-DESTFILE="$DESTDIR"/nextcloud-bkp_$( date +"%Y%m%d" ).tar
+DESTFILE="$DESTDIR"/nextcloud-bkp_$( date +"%Y%m%d_%s" ).tar
DBBACKUP=nextcloud-sqlbkp_$( date +"%Y%m%d" ).bak
BASEDIR=/var/www
diff --git a/update.sh b/update.sh
index ae0f3d6a..d21f7034 100755
--- a/update.sh
+++ b/update.sh
@@ -131,6 +131,12 @@ done
}
}
+ # update nc-backup
+ cd "$CONFDIR" &>/dev/null
+ install_script nc-backup.sh
+ cd - &>/dev/null
+
+
} # end - only live updates
exit 0