aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rwxr-xr-xsystemd-zfs-partition-backup.sh (renamed from backup/backup.sh)0
-rw-r--r--systemd-zfs-partition-backup/AUR/PKGBUILD24
-rw-r--r--systemd-zfs-partition-backup/systemd/max-backup@.service (renamed from backup/systemd/max-backup@.service)3
-rw-r--r--systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules (renamed from backup/udev/rules.d/99-max-autobackup.rules)0
-rwxr-xr-x[-rw-r--r--]zfs-squash-datasets.sh (renamed from zfs-flatten.sh)0
6 files changed, 29 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e42ceac
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
1**.tar.xz
2**.tar.bz2
3**/AUR/pkg/
4**/AUR/src/
diff --git a/backup/backup.sh b/systemd-zfs-partition-backup.sh
index 91acdfc..91acdfc 100755
--- a/backup/backup.sh
+++ b/systemd-zfs-partition-backup.sh
diff --git a/systemd-zfs-partition-backup/AUR/PKGBUILD b/systemd-zfs-partition-backup/AUR/PKGBUILD
new file mode 100644
index 0000000..f9d7315
--- /dev/null
+++ b/systemd-zfs-partition-backup/AUR/PKGBUILD
@@ -0,0 +1,24 @@
1# Maintainer: Max Christian Pohle <webmaster@coderonline.de>
2pkgname=systemd-zfs-partition-backup
3pkgver=2020_07_11
4# release number, always starts with 1
5pkgrel=1
6pkgdesc="automatically backup usb* drives to zfs datasets, encryption supported"
7arch=('any')
8url="http://git.entwicklerseite.de/zfs-auto-backup"
9license=('MIT')
10depends=(
11 'systemd'
12 'kbd'
13 'mkinitcpio'
14)
15source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.bz2")
16sha256sums=('a734c145709687c5621f430d3baec3105977984dfbb35348beab4b793aeb8e1b')
17
18package() {
19 install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh
20 install -D zfs-bash-tools-master/${pkgname}/systemd/max-backup\@.service ../pkg/${pkgname}/usr/lib/systemd/system/${pkgname}.service
21 install -D zfs-bash-tools-master/${pkgname}/udev/rules.d/99-max-autobackup.rules ../pkg/${pkgname}/etc/udev/rules.d/99-${pkgname}.rules
22}
23
24# vim: ft=bash
diff --git a/backup/systemd/max-backup@.service b/systemd-zfs-partition-backup/systemd/max-backup@.service
index 44c6bf8..d7948a8 100644
--- a/backup/systemd/max-backup@.service
+++ b/systemd-zfs-partition-backup/systemd/max-backup@.service
@@ -3,6 +3,5 @@ Description=Generic backup
3 3
4[Service] 4[Service]
5Type=simple 5Type=simple
6ExecStart=/home/max/backup/backup.sh %I 6ExecStart=/usr/bin/systemd-zfs-partition-backup.sh %I
7
8 7
diff --git a/backup/udev/rules.d/99-max-autobackup.rules b/systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules
index e17bba0..e17bba0 100644
--- a/backup/udev/rules.d/99-max-autobackup.rules
+++ b/systemd-zfs-partition-backup/udev/rules.d/99-max-autobackup.rules
diff --git a/zfs-flatten.sh b/zfs-squash-datasets.sh
index c61af40..c61af40 100644..100755
--- a/zfs-flatten.sh
+++ b/zfs-squash-datasets.sh
..