From 8e336bfa1f18d6d30f2b00896ae383fb799acf13 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 19 Apr 2017 15:37:35 +0200 Subject: [PATCH] Renaming pp_archive_old_homes.sh -> archive-old-homes.sh and adding output of version --- ...chive_old_homes.sh => archive-old-homes.sh | 37 +++++++------------ 1 file changed, 13 insertions(+), 24 deletions(-) rename pp_archive_old_homes.sh => archive-old-homes.sh (94%) diff --git a/pp_archive_old_homes.sh b/archive-old-homes.sh similarity index 94% rename from pp_archive_old_homes.sh rename to archive-old-homes.sh index b4d4a25..b17fbc6 100755 --- a/pp_archive_old_homes.sh +++ b/archive-old-homes.sh @@ -7,9 +7,7 @@ ## Zone..............: N/A ## ## Copyright ........: Pixelpark AG -## File ........ ....: pp_archive_old_homes.sh -## Major-Version ....: 2 -## Minor-Version ....: 00 +## File ........ ....: archive-old-homes.sh ## Maintained by ....: Frank Brehm ## Description ......: ## @@ -18,25 +16,8 @@ ## ## Vers. Date By Reason ## ----- ----------- ---------------- --------------------------------------- -## 01 09.01.2009 thomas.kotschok initial Version -## -################################################################################ - -################################################################################ -## -## Vars -## -################################################################################ -## -## TIME -> last Days ago -## -## DATE -> Actual Time -## -## NODENAME -> machine name -## -## SAVEPATH -> where go's the archive -## -## ANNOTATION -> Archive save sets can be annotated +## 1.0 09.01.2009 thomas.kotschok initial Version +## 2.0 18.04.2017 frank.brehm modifying for running on Linux ## ################################################################################ @@ -46,6 +27,8 @@ set -u VERBOSE="n" DEBUG="n" +VERSION="2.1" + # console colors: RED="" YELLOW="" @@ -129,6 +112,7 @@ usage() { cat <<-EOF Usage: ${BASENAME} [OPTIONS] [ [&2 @@ -198,6 +183,10 @@ get_options() { usage exit 0 ;; + -V|--version) + echo "${BASENAME} version: ${VERSION}" + exit 0 + ;; --) shift break ;; -- 2.39.5