From 111ea82d7872a140c0d097ec1624c8954d6da5c5 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 11 Jul 2020 20:55:05 +0200 Subject: Updated naming --- .gitignore | 3 +-- systemd-zfs-partition-backup/AUR/PKGBUILD | 2 +- systemd-zfs-partition-backup/systemd/max-backup@.service | 7 ------- .../systemd/systemd-zfs-partition-backup@.service | 7 +++++++ .../udev/rules.d/90-systemd-zfs-partition-backup.rules | 2 ++ systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules | 2 -- 6 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 systemd-zfs-partition-backup/systemd/max-backup@.service create mode 100644 systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service create mode 100644 systemd-zfs-partition-backup/udev/rules.d/90-systemd-zfs-partition-backup.rules delete mode 100644 systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules diff --git a/.gitignore b/.gitignore index e42ceac..8ee88b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -**.tar.xz -**.tar.bz2 +**.tar.[xgb]z **/AUR/pkg/ **/AUR/src/ diff --git a/systemd-zfs-partition-backup/AUR/PKGBUILD b/systemd-zfs-partition-backup/AUR/PKGBUILD index 916f491..04efc57 100644 --- a/systemd-zfs-partition-backup/AUR/PKGBUILD +++ b/systemd-zfs-partition-backup/AUR/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'mkinitcpio' ) source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") -sha256sums=('f6d9879ccffad6ceb2441cdf4c1abf70cb3bb53d717c4aaa5715973293d10c13') +sha256sums=('8e9fda1fb852eae1605f7f53c1f98b57953357fa9077b57e699c26fbde6bd436') package() { install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh diff --git a/systemd-zfs-partition-backup/systemd/max-backup@.service b/systemd-zfs-partition-backup/systemd/max-backup@.service deleted file mode 100644 index d7948a8..0000000 --- a/systemd-zfs-partition-backup/systemd/max-backup@.service +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Generic backup - -[Service] -Type=simple -ExecStart=/usr/bin/systemd-zfs-partition-backup.sh %I - diff --git a/systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service b/systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service new file mode 100644 index 0000000..d7948a8 --- /dev/null +++ b/systemd-zfs-partition-backup/systemd/systemd-zfs-partition-backup@.service @@ -0,0 +1,7 @@ +[Unit] +Description=Generic backup + +[Service] +Type=simple +ExecStart=/usr/bin/systemd-zfs-partition-backup.sh %I + 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 new file mode 100644 index 0000000..2a92960 --- /dev/null +++ b/systemd-zfs-partition-backup/udev/rules.d/90-systemd-zfs-partition-backup.rules @@ -0,0 +1,2 @@ +ACTION=="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" +LABEL="External disk drive backup" diff --git a/systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules b/systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules deleted file mode 100644 index e17bba0..0000000 --- a/systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules +++ /dev/null @@ -1,2 +0,0 @@ -ACTION=="add", ENV{ID_PART_ENTRY_NUMBER}=="[0-9]", ENV{SYSTEMD_WANTS}="max-backup@$env{ID_SERIAL}\\x2dpart$env{ID_PART_ENTRY_NUMBER}.service" -LABEL="External disk drive backup" -- cgit v1.2.3