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
path: root/bin/ncp
diff options
context:
space:
mode:
authorfrazhome <franz@pfoertsch.de>2021-10-15 21:31:36 +0300
committernachoparker <nacho@ownyourbits.com>2021-10-18 21:11:35 +0300
commitdcfd1cff4a22af7c5a9120d86ec1ba2323cd1bc6 (patch)
treeed5fe7de2ae53915beae2dbda03b5c961053d0b7 /bin/ncp
parentec94e6fb8082a3e36a16e6e378b613f0b0a89e7b (diff)
ncp-backup: added help message (#1231)v1.41.11
Co-authored-by: Franz Pfoertsch <franz.pfoertsch@gmail.com>
Diffstat (limited to 'bin/ncp')
-rw-r--r--bin/ncp/BACKUPS/nc-backup.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ncp/BACKUPS/nc-backup.sh b/bin/ncp/BACKUPS/nc-backup.sh
index b754d019..25f5285f 100644
--- a/bin/ncp/BACKUPS/nc-backup.sh
+++ b/bin/ncp/BACKUPS/nc-backup.sh
@@ -17,6 +17,13 @@ install()
set -eE
source /usr/local/etc/library.sh
+if [ "$1" = "--help" ]; then
+ echo "$0 <destdir> <includedata> <compress> <backuplimit>"
+ echo " <includedata> and <compress> are 'yes' or 'no'"
+ echo " <backuplimit> integer >= 1 or 0 for no limit"
+ exit 0
+fi
+
destdir="${1:-/media/USBdrive/ncp-backups}"
includedata="${2:-no}"
compress="${3:-no}"