
Yes it's weird to modify the system package like this, but it's very handy. See also https://restic.readthedocs.io/en/stable/080_examples.html#backing-up-your-system-without-running-restic-as-root
10 lines
187 B
Plaintext
10 lines
187 B
Plaintext
[Trigger]
|
|
Operation = Upgrade
|
|
Type = Package
|
|
Target = restic
|
|
|
|
[Action]
|
|
Description = Set restic binary permissions
|
|
When = PostTransaction
|
|
Exec = /usr/share/libalpm/scripts/restic-post.sh
|