-
Notifications
You must be signed in to change notification settings - Fork 783
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 keep multi backup files #1202
Conversation
I'm just a bystander and fellow user. This is an interesting feature. I have some concerns:
Given this is consul-template, it would be interesting to allow a template of the filenames. Does this make sense as a built-in feature? You could script the |
Thanks for the PR @liuxu623. The show stopper with this PR is that it will break backwards compatibility. That is a no-go for the project at this point. So if you'd like to re-work the PR to make it backwards compatible and maybe consider @sodabrew's input as well, I'll take another look at it. Thanks. |
it looks like some |
I have used the |
Hey @liuxu623, thanks for updating the PR to make it backwards compatible. There are a few things left that I'd like to see changed. First is how After thinking about it more I just think making the multiple rotating backups completely separate from the simple backup options. What I mean is that if With this change and the small bit I put inline, I think we'll be close. Thanks. |
Oh.. one last thing. In your tests, if you could break them up into logical chunks using t.Run() with an appropriate label I'd appreciate that as well. I find doing that makes the tests much easier to read than one long function. Thanks. |
2981e75
to
4482341
Compare
Hey @liuxu623.. just a heads up. I changed the current backup code a bit (simplifying it and eliminating a race) which might cause conflicts. |
2854524
to
c5634eb
Compare
Fixes #1270 |
6fd85a8
to
cda7d23
Compare
@eikenb I have change |
Hey @liuxu623. I haven't forgotten about this issue but am probably not going to use it as is. We are refactoring the core logic of consul-template out into a separate library which changes much of the code this is working with but will make implementing something like this much easier after. Sorry for wasting your time having you rework it then not use it. We can leave it open as a reminder about the feature once the refactoring is done or we can close it for now and revisit it later. If you'd prefer the later, maybe re-file it as a ticket to keep it on the radar? Thanks again for your work on this and I'm sorry about the delays. |
I'm going to close this as I'm not sure if it would be generally useful enough to keep this around to remind me to add it after the new library update. Going to wait to see if it comes up again in the future. Thanks again for working on this and I'm sorry it didn't work out. |
No description provided.