diff options
Diffstat (limited to 'abs/core-testing/LinHES-system/bin/checkbackup')
-rwxr-xr-x | abs/core-testing/LinHES-system/bin/checkbackup | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-system/bin/checkbackup b/abs/core-testing/LinHES-system/bin/checkbackup new file mode 100755 index 0000000..129e5ff --- /dev/null +++ b/abs/core-testing/LinHES-system/bin/checkbackup @@ -0,0 +1,16 @@ +#!/bin/bash + +#---------------------------------------------------------------------------- +. $LinHES_ROOT/bin/backupcommon || { + echo 1>&2 "Can not load common settings!" + exit 1 +} +#---------------------------------------------------------------------------- + +if check_files_and_tables $BACKUP_LIST ; then + echo "Backup passes all checks." + exit 0 +else + echo "The backup is bad or already out of date!" + exit 1 +fi |