Skip to content

Commit dcfd1cf

Browse files
frazhomeFranz Pfoertsch
authored andcommitted
ncp-backup: added help message (#1231)
Co-authored-by: Franz Pfoertsch <franz.pfoertsch@gmail.com>
1 parent ec94e6f commit dcfd1cf

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

bin/ncp/BACKUPS/nc-backup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ install()
1717
set -eE
1818
source /usr/local/etc/library.sh
1919
20+
if [ "$1" = "--help" ]; then
21+
echo "$0 <destdir> <includedata> <compress> <backuplimit>"
22+
echo " <includedata> and <compress> are 'yes' or 'no'"
23+
echo " <backuplimit> integer >= 1 or 0 for no limit"
24+
exit 0
25+
fi
26+
2027
destdir="${1:-/media/USBdrive/ncp-backups}"
2128
includedata="${2:-no}"
2229
compress="${3:-no}"

changelog.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
[v1.41.10](https://github.com/nextcloud/nextcloudpi/commit/042491f) (2021-10-18) nc-static-IP: use ifdown/ifup
2+
[v1.41.11](https://github.com/nextcloud/nextcloudpi/commit/c95976c) (2021-10-15) ncp-backup: added help message (#1231)
3+
4+
[v1.41.10](https://github.com/nextcloud/nextcloudpi/commit/ec94e6f) (2021-10-18) nc-static-IP: use ifdown/ifup
35

46
[v1.41.9 ](https://github.com/nextcloud/nextcloudpi/commit/f9c9e37) (2021-10-18) fail2ban: fix UFW jail
57

@@ -17,7 +19,7 @@
1719

1820
[v1.41.2 ](https://github.com/nextcloud/nextcloudpi/commit/cf4cfd8) (2021-10-15) also save hostname in trusted domains
1921

20-
[v1.41.1](https://github.com/nextcloud/nextcloudpi/commit/c75db63) (2021-10-14) letsencrypt: take into account the possibility of the ncp-nextcloud folder being used
22+
[v1.41.1 ](https://github.com/nextcloud/nextcloudpi/commit/c75db63) (2021-10-14) letsencrypt: take into account the possibility of the ncp-nextcloud folder being used
2123

2224
[v1.41.0 ](https://github.com/nextcloud/nextcloudpi/commit/b41fad0) (2021-10-13) ncp-web: add NCP logs section
2325

0 commit comments

Comments
 (0)