summaryrefslogtreecommitdiff
path: root/src/push-btrfs@.service
diff options
context:
space:
mode:
Diffstat (limited to 'src/push-btrfs@.service')
-rw-r--r--src/push-btrfs@.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/push-btrfs@.service b/src/push-btrfs@.service
new file mode 100644
index 0000000..9eb1713
--- /dev/null
+++ b/src/push-btrfs@.service
@@ -0,0 +1,10 @@
1[Unit]
2Description = Btrfs Backup over SSH
3ConditionUser = root
4ConditionFileNotEmpty = /etc/btrfs-backup/remotes/%I.json
5
6[Service]
7ExecStart = /root/src/local-btrfs-backup/push-btrfs %I.json
8
9[Install]
10WantedBy=default.target