Kumanda/server/scripts/entryPoint.sh

13 lines
267 B
Bash

#!/bin/bash
if [ -z ${AMANDA_CONFIG} ]; then
echo "it set best practise to set the AMANDA_CONFIG environment variable"
AMANDA_CONFIG="server"
fi
amcleanup -k ${AMANDA_CONFIG}
amcheck ${AMANDA_CONFIG}
amdump ${AMANDA_CONFIG}
amstatus ${AMANDA_CONFIG}
exit 0