Database Backup

  1. Should EventStore be stopped when copying the db files?

  2. 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 ->

  1. Create a copy of chaser.chk and call it truncate.chk.
  2. 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:

  1. Can you backup when server is running?

  2. Can you restore when server(s) are running - will restore propagate automatically to all nodes?

  3. Restoring: “create a copy of chaser.chk” and call it… Chaser in backup folder or on server

  4. Backup: “copy remaining files and directories”. From the DB folder only? Should be explicit

/Høgge

  1. Can you backup when server is running?

Yes

  1. 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.