aboutsummaryrefslogtreecommitdiff
path: root/systemd-zfs-partition-backup
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-zfs-partition-backup')
-rw-r--r--systemd-zfs-partition-backup/AUR/PKGBUILD2
-rw-r--r--systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service2
-rw-r--r--systemd-zfs-partition-backup/udev/rules.d/90-systemd-zfs-partition-backup.rules3
3 files changed, 3 insertions, 4 deletions
diff --git a/systemd-zfs-partition-backup/AUR/PKGBUILD b/systemd-zfs-partition-backup/AUR/PKGBUILD
index 39b4e4c..d2543f6 100644
--- a/systemd-zfs-partition-backup/AUR/PKGBUILD
+++ b/systemd-zfs-partition-backup/AUR/PKGBUILD
@@ -14,7 +14,7 @@ depends=(
14 'rsync' 14 'rsync'
15) 15)
16source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") 16source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz")
17sha256sums=('2930678316eb0a6e67ab29f2ad378ea4d6e90ec49870742d68f78278c1a949e3') 17sha256sums=('b89036a82f8ab86214016514931e7921027efdcaedeadaec0776a5eb94e33d18')
18 18
19package() { 19package() {
20 install -D zfs-bash-tools-master/${pkgname}.sh \ 20 install -D zfs-bash-tools-master/${pkgname}.sh \
diff --git a/systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service b/systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service
index d7948a8..a4577c4 100644
--- a/systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service
+++ b/systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service
@@ -3,5 +3,5 @@ Description=Generic backup
3 3
4[Service] 4[Service]
5Type=simple 5Type=simple
6ExecStart=/usr/bin/systemd-zfs-partition-backup.sh %I 6ExecStart=/usr/bin/systemd-zfs-partition-backup.sh "%I"
7 7
diff --git a/systemd-zfs-partition-backup/udev/rules.d/90-systemd-zfs-partition-backup.rules b/systemd-zfs-partition-backup/udev/rules.d/90-systemd-zfs-partition-backup.rules
index 2a92960..3d05925 100644
--- a/systemd-zfs-partition-backup/udev/rules.d/90-systemd-zfs-partition-backup.rules
+++ b/systemd-zfs-partition-backup/udev/rules.d/90-systemd-zfs-partition-backup.rules
@@ -1,2 +1 @@
1ACTION=="add", ENV{ID_PART_ENTRY_NUMBER}=="[0-9]", ENV{SYSTEMD_WANTS}="systemd-zfs-partition-backup@$env{ID_SERIAL}\\x2dpart$env{ID_PART_ENTRY_NUMBER}.service" ACTION=="add", SUBSYSTEM=="block", ENV{DEVTYPE}=="partition", PROGRAM="/bin/systemd-escape --template systemd-zfs-partition-backup@.service $env{ID_MODEL}.$env{ID_SERIAL_SHORT}/$env{ID_FS_UUID}", ENV{SYSTEMD_WANTS}+="$result"
2LABEL="External disk drive backup"
..