Running commands in HOOKS #484
-
I need a little guidance on running commands in
Error
I'd rather have the commands in the GUI rather than making separate scripts. Advice and general guidance on how to make commands suitable for Backrest appreciated, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah, this is a bit tricky. Backrest uses go templates for substituting variables into scripts and messages, and so does docker cli :) You'll need to escape the go template string |
Beta Was this translation helpful? Give feedback.
Ah, this is a bit tricky. Backrest uses go templates for substituting variables into scripts and messages, and so does docker cli :)
You'll need to escape the go template string
{{ .Names }}
e.g. as{{"{{"}} .Names {{"}}"}}
(which yes -- is pretty ugly).