Docs / Guides
Running in production
Dapple is a command you run, not a service that keeps running. The usual way to run it regularly is a systemd timer.
Running on a schedule
# /etc/systemd/system/dapple.service
[Unit]
Description=Dapple backup
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/dapple backup /etc /home /srv
ExecStartPost=/usr/local/bin/dapple prune
Nice=10
IOSchedulingClass=idle
# /etc/systemd/system/dapple.timer
[Unit]
Description=Daily Dapple backup
[Timer]
OnCalendar=*-*-* 02:00
RandomizedDelaySec=30m
Persistent=true
[Install]
WantedBy=timers.target
$ sudo systemctl daemon-reload
$ sudo systemctl enable --now dapple.timer
$ systemctl list-timers dapple
Persistent=true makes up for a run missed while the machine was off.
Cron
If you prefer cron, one line does the same:
0 2 * * * /usr/local/bin/dapple backup /etc /home /srv && /usr/local/bin/dapple prune
Upgrading
Replace the binary and restart. Within a major version the configuration stays compatible; the changelog says when anything needs your attention.