BKSH=/usr/local/sbin/backup.sh
# Status report
15      1       3,10,17,24 *       *       root $BKSH status | mail -s "duplicity status for $(hostname -f)" root
# Daily run
<%= @run_min %>      <%= @run_hour %>       *          *       *       root (test ! -x /usr/bin/potatoctl || /usr/bin/potatoctl status >/dev/null) && $BKSH -l remove-old-sets && $BKSH -l run
# Daily verify
<%= @verify_min %>      <%= @verify_hour %>       *          *       *       root (test ! -x /usr/bin/potatoctl || /usr/bin/potatoctl status >/dev/null) && $BKSH -l verify-fast || echo "Verify failed" | mail -s "duplicity verify-fast failed for $(hostname -f)" root
# Monthly cleanup
10      8       7          *       *       root (test ! -x /usr/bin/potatoctl || /usr/bin/potatoctl status >/dev/null) && $BKSH -l cleanup
