aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system/sudoers-borgbackup
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-03-27 07:02:36 +0200
committerTharre <tharre3@gmail.com>2018-03-27 07:17:08 +0200
commitb8a806dfc701118ce1f10d5332093ac1f710d808 (patch)
tree264129ebbf2db959ffbd4dfa97c6034222b1434c /arch-system/sudoers-borgbackup
parent3cf436534fc2c3886184d7bbf441f45791bdc4a0 (diff)
downloadpkgbuilds-b8a806dfc701118ce1f10d5332093ac1f710d808.tar.gz
pkgbuilds-b8a806dfc701118ce1f10d5332093ac1f710d808.tar.xz
pkgbuilds-b8a806dfc701118ce1f10d5332093ac1f710d808.zip
arch-system: add backup-system package
This implements fully automated, hourly backups of my /home via borgbackup, btrfs and systemd timers. Note that `setup_borgbackup`, a related function that is part of my dotfiles, is needed to setup backups for the first time, as well as a call to `borg init` with the proper environment variables.
Diffstat (limited to 'arch-system/sudoers-borgbackup')
-rw-r--r--arch-system/sudoers-borgbackup4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch-system/sudoers-borgbackup b/arch-system/sudoers-borgbackup
new file mode 100644
index 0000000..a6f40b0
--- /dev/null
+++ b/arch-system/sudoers-borgbackup
@@ -0,0 +1,4 @@
+# /etc/sudoers.d/borgbackup
+
+# allow systemd service files to call backup-sudo
+%wheel ALL=(root) NOPASSWD: /usr/bin/backup-sudo