From a84a8c95f9b6f62c567eb4d91e82bf35c4f2a785 Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 17 Aug 2016 10:01:27 +0200 Subject: [PATCH] Standarised exit codes --- dev/n_obackup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index d616561..144684e 100755 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -3,13 +3,15 @@ #TODO: test bad return of _GetDirectoriesSizeRemote #TODO(critical): fix double path in rotate functions (switching from ls to find) #TODO(high): check paths with spaces (again) +#TODO(low): investigate all exit codes and adapt depending on WARN / ERROR so obackup-batch won't rerun WARN runs +#TODO(low): obackup-rerun is minimal 1 and not 0 ###### Remote push/pull (or local) backup script for files & databases PROGRAM="obackup" AUTHOR="(C) 2013-2016 by Orsiris de Jong" CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr" PROGRAM_VERSION=2.1-dev -PROGRAM_BUILD=2016081701 +PROGRAM_BUILD=2016081702 IS_STABLE=no source "./ofunctions.sh" @@ -34,7 +36,7 @@ CAN_BACKUP_FILES=1 function TrapStop { Logger "/!\ Manual exit of backup script. Backups may be in inconsistent state." "WARN" - exit 1 + exit 2 } function TrapQuit {