summarylogtreecommitdiffstats
path: root/95-bootbackup_post.hook
blob: 36ddaffb83ba5ebbf2fbdb6e71704159a16b9436 (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 post /boot...
When = PostTransaction
Exec = /usr/bin/bash -c 'rsync -a --mkpath --delete /boot/ "/.bootbackup/$(date +%Y_%m_%d_%H.%M.%S)_post"/'