diff --git a/README.md b/README.md index 7bf1594..47e06c7 100644 --- a/README.md +++ b/README.md @@ -49,18 +49,18 @@ mkstage4 -t /custom/mount/point archive_name ### Command line arguments ```console -usage: - mkstage4 [-q -c -b -l -k] [-s || -t ] [-e ] [-i ] [custom-tar-options] - -q: activates quiet mode (no confirmation). - -c: excludes some confidential files (currently only .bash_history and connman network lists). +Usage: + mkstage4.sh [-b -c -k -l -q] [-C ] [-s || -t ] [-e ] [-i ] [custom-tar-options] -b: excludes boot directory. + -c: excludes some confidential files (currently only .bash_history and connman network lists). + -k: separately save current kernel modules and src (creates smaller archives and saves decompression time). -l: excludes lost+found directory. + -q: activates quiet mode (no confirmation). + -C: specify tar compression (default: bz2, available: lz4 xz bz2 zst gz). + -s: makes tarball of current system. + -t: makes tarball of system located at the . -e: an additional excludes directory (one dir one -e, donot use it with *). -i: an additional target to include. This has higher precedence than -e, -t, and -s. - -s: makes tarball of current system. - -k: separately save current kernel modules and src (creates smaller archives and saves decompression time). - -t: makes tarball of system located at the . - -C: specify tar compression (default: bz2, available: lz4 xz bz2 zst gz). -h: displays help message. ``` diff --git a/mkstage4.sh b/mkstage4.sh index 06871f2..1109eb0 100755 --- a/mkstage4.sh +++ b/mkstage4.sh @@ -45,18 +45,18 @@ then HAS_PORTAGEQ=1 fi -USAGE="usage:\n\ - $(basename "$0") [-q -c -b -l -k] [-s || -t ] [-e ] [-i ] [custom-tar-options]\n\ - -q: activates quiet mode (no confirmation).\n\ - -c: excludes some confidential files (currently only .bash_history and connman network lists).\n\ +USAGE="Usage:\n\ + $(basename "$0") [-b -c -k -l -q] [-C ] [-s || -t ] [-e ] [-i ] [custom-tar-options]\n\ -b: excludes boot directory.\n\ + -c: excludes some confidential files (currently only .bash_history and connman network lists).\n\ + -k: separately save current kernel modules and src (creates smaller archives and saves decompression time).\n\ -l: excludes lost+found directory.\n\ + -q: activates quiet mode (no confirmation).\n\ + -C: specify tar compression (default: ${COMPRESS_TYPE}, available: ${!COMPRESS_AVAILABLE[*]}).\n\ + -s: makes tarball of current system.\n\ + -t: makes tarball of system located at the .\n\ -e: an additional excludes directory (one dir one -e, donot use it with *).\n\ -i: an additional target to include. This has higher precedence than -e, -t, and -s.\n\ - -s: makes tarball of current system.\n\ - -k: separately save current kernel modules and src (creates smaller archives and saves decompression time).\n\ - -t: makes tarball of system located at the .\n\ - -C: specify tar compression (default: ${COMPRESS_TYPE}, available: ${!COMPRESS_AVAILABLE[*]}).\n\ -h: displays help message." # reads options: