Comments (11)
We do not have a way to do that, each stream goes into back up state independently, message ingest does not pause during snapshots so you'd never get a exact point in time snapshot.
You can shut one of the replicas assuming all is R3 or greater and back up its disk - I know not ideal.
from natscli.
Thank you @ripienaar for your response. Do you have any plan to support the workaround? For example, if the stream name is a wildcard, then the backup command will automatically find the respective streams and backup them. Probably, in a single *.tgz
file but one file for each stream is also fine.
from natscli.
for stream in $(nats s ls -j|jq -r '.[]')
do
nats stream backup ....
done
from natscli.
Yes. That's what I am planning for now. However, it would have been great if nats has built-in support for this use-case. We can contribute the feature if you are willing to accept.
from natscli.
yes, should be a easy thing to add to the stream backup command, I'd then take the supplied directory and do dir/<stream name>/backup files...
so you get a series of stream backups in one dir. Today each backup has to be in a dir of its own
from natscli.
Let us know if you have bandwidth to do it or need any help from us. It's not an emergency.
Btw, thank you for the amazing works.
from natscli.
We'd love a contribution if you want to give it a go
from natscli.
Sure. Will do ASAP.
from natscli.
Maybe an offtopic comment, but just so that I'm not going insane: this issue is about backing up streams in JetStream and not NATS Streaming Server (the precursor to JetStream) right? I'm asking, because I've been searching for information about backups/restores for NATS Streaming Server specifically and to my understanding the NATS Streaming Server doesn't have a concept of streams nor does it really work with the nats
CLI tool either. Or am I missing something here?
from natscli.
This issue relates to JetStream, not Streaming Server indeed. Given that Streaming Server is retiring, yes we did not add extensive support for it in the nats
cli
from natscli.
We now have nats account backup
that does this.
from natscli.
Related Issues (20)
- nats str edit cannot update Subject Transform HOT 2
- A bug that was filed in nats.go HOT 2
- If user is set then token is not transmitted HOT 2
- Displayed ObjectStore digest is truncated HOT 1
- Not recognizing difference in stream configuration for sources HOT 1
- Support wildcard for KV get HOT 11
- Broken nats-cli arm64 binary HOT 3
- Stream info shows first and last timestamps incorrectly HOT 2
- Enable inactive-threshold flag while editing consumer HOT 2
- Can't create pull consumer from cli HOT 10
- Add a JWT decoder
- `micro list` timeout when micro service process paused via debugger HOT 4
- Subscribing to JetStream Stream on a 3 node cluster with a single offline node fails 1 in 3 times HOT 10
- nats: error: user: unknown userid 929600006 HOT 1
- nats sub --stream does not respect the --js-domain flag HOT 7
- Context subcommand "create" missing from CLI Menu HOT 2
- sub: allow multiple subjects HOT 1
- Consider making a new release HOT 2
- Upload of large object fails with `nats: error: nats: stalled with too many outstanding async published messages`
- Consumer pause/resume commands fail after selecting stream/consumer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from natscli.