#!/bin/sh

# Backup the onShore Timesheet database every weekend

set -e

[ -f /etc/onshore-timesheet.conf ] || exit 0
[ -x /usr/sbin/timesheet-dump ] || exit 0

# This is disabled by default, simply comment the following line to
# make this happen.
exit 0

su www-data -c /usr/sbin/timesheet-dump

exit 0
