Should EventStore be stopped when copying the db files?
If the EventStore must be stopped, I am assuming it is okay to just stop one node (in a cluster) to backup data?
Answering my own question based on http://docs.geteventstore.com/server/4.0.0/database-backup/
It is not necessary to stop the eventstore.
It does not need to be stopped just copy the .chk files before the rest
Acc. to http://docs.geteventstore.com/server/4.0.0/database-backup/
To restore a database ->
- Create a copy of
chaser.chkand call it
- Copy all files to the desired location.
In my data directory I already have a Truncate.chk. Should this file not be backed up?
Would be good to improve the documentation a bit, e.g. on backup:
Can you backup when server is running?
Can you restore when server(s) are running - will restore propagate automatically to all nodes?
Restoring: “create a copy of chaser.chk” and call it… Chaser in backup folder or on server
Backup: “copy remaining files and directories”. From the DB folder only? Should be explicit
- Can you backup when server is running?
- Can you restore when server(s) are running - will restore propagate automatically to all nodes?
Not while a node is running. If in a cluster and you restore one node then bring up the others data will propagate.
There is also a command line app that comes with the commercial version that does all of this work.