-
Notifications
You must be signed in to change notification settings - Fork 79
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
Do we want to have a functionality like clone topic to a file (backup/restore) ? #202
Comments
Hi @gotha to be honest, I don't see many people using such a feature.
If you really want to implement it, I think it would be ok to add a Regards, |
hey @d-rk, thank you for the reply. The feature I am proposing is similar to what export and import in a database would do - being able to recreate a topic with the same settings and put a snapshot of all of its messages. Do you think such a a feature makes sense for kafkactl ? |
hey @gotha For both issues a topics and its content shall be cloned. I'm not sure if it is worth to implement it in one command, but doing it in multiple commands would require only smaller changes. I'm thinking of something like this:
|
ok, looks like we are very close to this functionality already. kafkactl consume my-topic --from-beginning --print-headers --print-keys --exit --output json > my-topic-data seems to do exactly what I need with one minor issue. The JSON output is formatted on multiple lines so when I try to execute kafkactl produce my-topic-clone --file=my-topic-data the messages are not properly created. If I change the I assume you would not like to change the default json output format, so would you recommend to add new format, probably something like Thank you. |
now that we have the feature to create a topic from file, the only thing left to be able to complete this functionality is to be able to export messages in a json file one message per line, so they can be read by @d-rk what would be your recommendation to proceed on this? |
Hi,
just wanted to check if somebody is interested in backup/restore to/from file functionality?
Something like the existing clone functionality but with file as intermediate step.
I can potentially try to help implementing such a feature, but wanted to check if you think it is a good idea in the first place?
The text was updated successfully, but these errors were encountered: