diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rwxr-xr-x | systemd-zfs-partition-backup.sh (renamed from backup/backup.sh) | 0 | ||||
-rw-r--r-- | systemd-zfs-partition-backup/AUR/PKGBUILD | 24 | ||||
-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> | ||
2 | pkgname=systemd-zfs-partition-backup | ||
3 | pkgver=2020_07_11 | ||
4 | # release number, always starts with 1 | ||
5 | pkgrel=1 | ||
6 | pkgdesc="automatically backup usb* drives to zfs datasets, encryption supported" | ||
7 | arch=('any') | ||
8 | url="http://git.entwicklerseite.de/zfs-auto-backup" | ||
9 | license=('MIT') | ||
10 | depends=( | ||
11 | 'systemd' | ||
12 | 'kbd' | ||
13 | 'mkinitcpio' | ||
14 | ) | ||
15 | source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.bz2") | ||
16 | sha256sums=('a734c145709687c5621f430d3baec3105977984dfbb35348beab4b793aeb8e1b') | ||
17 | |||
18 | package() { | ||
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] |
5 | Type=simple | 5 | Type=simple |
6 | ExecStart=/home/max/backup/backup.sh %I | 6 | ExecStart=/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 | |||