diff options
Diffstat (limited to 'src/push-btrfs@.service')
-rw-r--r-- | src/push-btrfs@.service | 10 |
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] | ||
2 | Description = Btrfs Backup over SSH | ||
3 | ConditionUser = root | ||
4 | ConditionFileNotEmpty = /etc/btrfs-backup/remotes/%I.json | ||
5 | |||
6 | [Service] | ||
7 | ExecStart = /root/src/local-btrfs-backup/push-btrfs %I.json | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=default.target | ||