summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Mekkering2017-07-21 15:14:58 +0200
committerAlex Mekkering2017-07-21 15:14:58 +0200
commit7ac0902918ede7c7f9eb415b2b0a6fe9dc2c2627 (patch)
tree1a6ce81d422cbb4e8e8c818b09be296a54357652
parentd7615c188cb4e6da6e0a2d998826135277fe714b (diff)
downloadaur-7ac0902918ede7c7f9eb415b2b0a6fe9dc2c2627.tar.gz
Add support for sending automatic status mails using systemd-unit-status-mail
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD11
-rw-r--r--luky-borg-backup.service2
3 files changed, 13 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8ac8de19f1a..79d1c84c6b6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,19 @@
pkgbase = luky-borg-backup
pkgdesc = Automated backup scripts using Borg Backup, systemd and optionally Nextcloud/ownCloud/Stack
- pkgver = 1.0.0
- pkgrel = 2
+ pkgver = 1.0.1
+ pkgrel = 1
arch = any
- license = MIT
+ license = GPL3
depends = borg
optdepends = owncloud-client: For backing up to Nextcloud/ownCloud/Stack
+ optdepends = systemd-unit-status-mail: For mailing the backup unit's status
backup = etc/luky-borg-backup.conf
source = luky-borg-backup
source = luky-borg-backup.service
source = luky-borg-backup.timer
source = luky-borg-backup.conf
sha256sums = 4410d6f2938d47373f2877f08421ceb69faf302782056cf1c7dcb2290d8c606e
- sha256sums = a90e9e739cf4adc98ee394e87c7ead7d365783ca321e3b47e6782e69c5638b07
+ sha256sums = 5ba04f45d567a60d8eb8cc6cd57b9974635e0bed84882d6d7b272d955140dcca
sha256sums = 188463a3644df0e70e030d0236b6ef04446cd5064a50a7307f1792c3645e31bd
sha256sums = 7245e87ab2516d808158dab177c07247e2c61d5d8c41d61cac4143182c1a6a58
diff --git a/PKGBUILD b/PKGBUILD
index e08c6f0e0aa..230a9143d9e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,14 @@
pkgname=luky-borg-backup
-pkgver=1.0.0
-pkgrel=2
+pkgver=1.0.1
+pkgrel=1
pkgdesc="Automated backup scripts using Borg Backup, systemd and optionally Nextcloud/ownCloud/Stack"
arch=(any)
-license=('MIT')
+license=('GPL3')
depends=('borg')
-optdepends=('owncloud-client: For backing up to Nextcloud/ownCloud/Stack')
+optdepends=("owncloud-client: For backing up to Nextcloud/ownCloud/Stack"
+ "systemd-unit-status-mail: For mailing the backup unit's status")
source=('luky-borg-backup'
'luky-borg-backup.service'
'luky-borg-backup.timer'
@@ -16,7 +17,7 @@ source=('luky-borg-backup'
)
backup=('etc/luky-borg-backup.conf')
sha256sums=('4410d6f2938d47373f2877f08421ceb69faf302782056cf1c7dcb2290d8c606e'
- 'a90e9e739cf4adc98ee394e87c7ead7d365783ca321e3b47e6782e69c5638b07'
+ '5ba04f45d567a60d8eb8cc6cd57b9974635e0bed84882d6d7b272d955140dcca'
'188463a3644df0e70e030d0236b6ef04446cd5064a50a7307f1792c3645e31bd'
'7245e87ab2516d808158dab177c07247e2c61d5d8c41d61cac4143182c1a6a58')
diff --git a/luky-borg-backup.service b/luky-borg-backup.service
index 9ff1c9db176..98a16cdcc41 100644
--- a/luky-borg-backup.service
+++ b/luky-borg-backup.service
@@ -1,5 +1,7 @@
[Unit]
Description=LukyLX Incremental Backup
+Wants=unit-status-mail@%n.service
+Before=unit-status-mail@%n.service
[Service]
Type=oneshot