Jump to content
  • 0

Exporting/Importing Redis database


BetterDeadThanZed

Question

3 answers to this question

Recommended Posts

  • 0
33 minutes ago, Brian Soanes said:

Stop the server, close Redis and copy the dump.rdb file either in DB folder or root.

Ah ok, I didn't realize it was that easy. I'm used to MySQL where you have to export the database. So, then any idea what Maca's tool does that I can't get just from copying that file? https://github.com/maca134/RedisDump

Link to comment
Share on other sites

  • 0

That tool looks to be able to make a snapshot of an individual live redis database. By default redis can have 16 separate databases running on one process, these are then all saved to the dump.rdb. In normal use you are just using the first database (#0) and unless you need to make live snapshots of and use multiple databases its a tad overkill. Redis never write locks the dump.rdb so that means as long as your server is setup and saving correctly you can simply hot copy the dump.rdb at anytime.

If you run the log rotator script found in the server install pack (https://github.com/EpochModTeam/Epoch/blob/master/Server_Install_Pack/Tools/log-rotator.cmd#L88) just before you restart the server process (http://www.firedaemon.com/manual/index.html?PreServicePostServiceTab). The dump.rdb file should be backed up each time you restart the Arma 3 server inside a folder called DBbackups.

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