summarylogtreecommitdiffstats
path: root/pre-kernel-upgrade-rsync
diff options
context:
space:
mode:
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}"