Docs / Concepts
Running in production
Rowankeep is a command you run, not a service that keeps running. The usual way to run it regularly is a systemd timer.
A systemd timer
# /etc/systemd/system/rowankeep.service
[Unit]
Description=Rowankeep backup
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/rowankeep backup /etc /home /srv
ExecStartPost=/usr/local/bin/rowankeep prune
Nice=10
IOSchedulingClass=idle
# /etc/systemd/system/rowankeep.timer
[Unit]
Description=Daily Rowankeep backup
[Timer]
OnCalendar=*-*-* 02:00
RandomizedDelaySec=30m
Persistent=true
[Install]
WantedBy=timers.target
$ sudo systemctl daemon-reload
$ sudo systemctl enable --now rowankeep.timer
$ systemctl list-timers rowankeep
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/rowankeep backup /etc /home /srv && /usr/local/bin/rowankeep prune
Upgrading
Replace the binary and restart. Within a major version the configuration stays compatible; the changelog says when anything needs your attention.