remove obsolete comment and trim unnecessary whitespace and lines
Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
parent
998687fdbe
commit
450165ed99
1 changed files with 7 additions and 16 deletions
11
bin/backup
11
bin/backup
|
@ -1,9 +1,6 @@
|
|||
#! /bin/bash
|
||||
set -uo pipefail
|
||||
|
||||
#backup li run
|
||||
#backup li
|
||||
|
||||
display_usage() {
|
||||
echo "Usage: $0 <repo> (local|monitor <host> <warning> <critical>|restic arguments)" >&2
|
||||
}
|
||||
|
@ -13,7 +10,6 @@ if [ "$#" -lt 2 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
TARGET=$1
|
||||
ACTION=$2
|
||||
RESTIC=$(which restic)
|
||||
|
@ -35,8 +31,6 @@ check_config() {
|
|||
echo "Restic binary not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
handle_params () {
|
||||
|
@ -109,6 +103,7 @@ do_monitor () {
|
|||
BACKUP_TST=$(date -d "$DATE $TIME" +"%s" )
|
||||
;;
|
||||
esac
|
||||
|
||||
NOW_TST=$(date +%s)
|
||||
DIFF_S=`expr $NOW_TST - $BACKUP_TST`
|
||||
|
||||
|
@ -133,9 +128,5 @@ do_monitor () {
|
|||
return $RET
|
||||
}
|
||||
|
||||
|
||||
|
||||
check_config $@
|
||||
handle_params $@
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue