Jump to content

Database backup


Metalfoundry

Recommended Posts

The "database" is in two locations;

  1. Memory
  2. Disk

Epoch interacts with REDIS in memory. REDIS then flushes it's changes from memory to the disk. This file is the "rdb" file in your REDIS directory.

 

You need to save all information in memory to disk. If you don't do this, you will lose recent data

redis-cli.exe -h <hostname> -p <port> -a <password> -n <database#> SAVE
  • If you use SAVE while the database is still being written to, you will block any other writes. You should kill the server beforehand, or use BGSAVE and wait for an OK state

Restoring is as simple as moving the RDB back into the directory and starting REDIS normally.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...