Skip to content
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

Support dollar templating in config file #10

Open
pspiagicw opened this issue Apr 12, 2024 · 0 comments
Open

Support dollar templating in config file #10

pspiagicw opened this issue Apr 12, 2024 · 0 comments

Comments

@pspiagicw
Copy link
Owner

pspiagicw commented Apr 12, 2024

Right now the after-backup commands are written completely by the user.

But we should provide some resolving of the commands using demp.

Let me explain

storeDir = "some-system-path"
after-backup = [
    "tar -czvf backup.tar.gz <the-full-fucking-path>"
]

What if we support dollar templating like we use for groom.
Meaning

storeDir = "some-system-path"
after-backup = [
    "tar -czvf backup.tar.gz $storeDir"
]

It makes it easier for the user to build upon complex commands.
Like

storeDir = "some-system-path"
after-backup = [
    "tar -C $storeDir -czvf backup.tar.gz $storeDir",
    "scp ${storeDir}/backup.tar.gz <some-server>",
# Either delete the `backup.tar.gz` or not, dotback will work.
    "rm ${storeDir}/backup.tar.gz"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant