Commit 8dd4fd29 authored by Sebastian Stark's avatar Sebastian Stark

add example unit for systemd

parent 0420767f
......@@ -136,6 +136,34 @@ You can verify your schedule by running `snaprd scheds`, and later, when
snapshots have already been created, by `snaprd list`.
Example Unit File for Systemd
-----------------------------
Place in `/etc/systemd/system/snaprd-srv-home.service`
[Unit]
Description=snapshots for srv:/homes
Documentation=https://github.com/sstark/snaprd
Requires=network.target
[Service]
User=root
StandardOutput=syslog
ExecStart=/usr/local/bin/snaprd run -noLogDate -repository=/export/srv-home-snap -origin=srv:/export/homes
Restart=on-failure
[Install]
WantedBy=multi-user.target
Enable with
sudo systemctl enable snaprd-srv-home && sudo systemctl start snaprd-srv-home
Check logs with
journalctl -u snaprd-srv-home
Testing
-------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment