summarylogtreecommitdiffstats
path: root/55-bootbackup_pre.hook
blob: 67c2bd98367500455aa77e2a155c9fdfb52dcea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Path
Target = usr/lib/modules/*/vmlinuz

[Action]
Depends = rsync
Description = Backing up pre /boot...
When = PreTransaction
Exec = /usr/bin/bash -c 'rsync -a --mkpath --delete /boot/ "/.bootbackup/$(date +%Y_%m_%d_%H.%M.%S)_pre"/'