summarylogtreecommitdiffstats
path: root/pre-kernel-upgrade-rsync
diff options
context:
space:
mode:
authorMarkus Schanz2018-01-05 22:32:38 +0100
committerMarkus Schanz2018-01-05 22:50:37 +0100
commit766320157ec3499c287e88d48ee02cb6c1e104b6 (patch)
tree3dc7f692497ef5b1ccf30f67110f2924b5e395e4 /pre-kernel-upgrade-rsync
parente50ce5ebdecae990efb103fc1d8836eba455d7a9 (diff)
downloadaur-766320157ec3499c287e88d48ee02cb6c1e104b6.tar.gz
Make location of the backup path (source & destination) configurable
Diffstat (limited to 'pre-kernel-upgrade-rsync')
-rw-r--r--pre-kernel-upgrade-rsync5
1 files changed, 5 insertions, 0 deletions
diff --git a/pre-kernel-upgrade-rsync b/pre-kernel-upgrade-rsync
new file mode 100644
index 000000000000..a7452894e047
--- /dev/null
+++ b/pre-kernel-upgrade-rsync
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+[[ -f /etc/pacman-boot-backup.conf ]] && . /etc/pacman-boot-backup.conf
+
+/usr/bin/rsync -azq --delete "${BACKUP_PATH_SRC:-/boot/}" "${BACKUP_PATH_DEST:-/.bootbackup}"