You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
305 B
15 lines
305 B
3 years ago
|
[Trigger]
|
||
|
Type=Package
|
||
|
Operation=Install
|
||
|
Operation=Upgrade
|
||
|
Operation=Remove
|
||
|
Target=*
|
||
|
|
||
|
[Action]
|
||
|
Description=Making BTRFS snapshot...
|
||
|
Depends=btrfs-progs
|
||
|
When=PreTransaction
|
||
|
Exec=/usr/bin/sh -c "/usr/bin/btrfs subvolume snapshot / /snaps/root@$(date +%Y-%m-%d_%H-%M-%S)_pacman_pre"
|
||
|
AbortOnFail
|
||
|
NeedsTargets
|