-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISSUE: {{ .Now }} #432
Comments
Same applies to run commands, variables are all parsed when execution of the backup starts, reporting not update values for {{ .Now }} in this case |
Anything inside a double curly bracket (go template) is generated just once, before reading the configuration. So it's actually the normal behaviour. I do understand your use case though: I could regenerate a full configuration file on each command, but I'm not entirely sure that wouldn't break any existing configuration. I need to verify that first 🤔 |
Thank you for replying, maybe this can be done using an option inside a profile? |
That would be one way of doing it safely, for sure. This templating system is still confusing though and I'm thinking we should probably populate an environment variable before each step instead. So we would use |
Yeah, it's not a bad idea. Unfortunately, I'm not an expert in Go. I wish I could have been more useful in this situation. |
Hello, I have a problem with .Now variable, it seems like its called once both for send-before and send-after giving so a non correct time output for send-after http hook.
The text was updated successfully, but these errors were encountered: