a8d3704
#!/bin/bash
a8d3704
#
a8d3704
# backup-manager's cron script
a8d3704
#
a8d3704
# This script do backup if option BM_DAILY_CRON in config is true
a8d3704
a8d3704
BM_PATH=$(which backup-manager)
a8d3704
eval $(grep BM_DAILY_CRON /etc/backup-manager.conf)
a8d3704
a8d3704
if [ ${BM_DAILY_CRON} = "true" ]; then
a8d3704
    ${BM_PATH} -v
a8d3704
else
a8d3704
    echo "[backup-manager] Daily cron is disabled"
a8d3704
fi
a8d3704
exit 0