15 lines
499 B
SYSTEMD
15 lines
499 B
SYSTEMD
|
|
# /etc/systemd/system/garage-meta-backup.service (rpi)
|
||
|
|
#
|
||
|
|
# Metadata is the piece that orphans data/ if lost, and it changes on every
|
||
|
|
# upload/key/bucket change — hence hourly, not nightly.
|
||
|
|
[Unit]
|
||
|
|
Description=Garage metadata snapshot -> Linode VPS (off the Pi)
|
||
|
|
After=docker.service network-online.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=oneshot
|
||
|
|
ExecStart=/usr/local/sbin/garage-backup.sh meta
|
||
|
|
# Slow tunnel is not a reason to retry a 5-minute job forever.
|
||
|
|
TimeoutStartSec=15min
|
||
|
|
Nice=10
|