BetterDeadThanZed Posted April 15, 2016 Report Share Posted April 15, 2016 Does anyone know how I could export a Redis database if I were to move my server to a new location? Link to comment Share on other sites More sharing options...
0 Brian Soanes Posted April 15, 2016 Report Share Posted April 15, 2016 Stop the server, close Redis and copy the dump.rdb file either in DB folder or root. Link to comment Share on other sites More sharing options...
0 BetterDeadThanZed Posted April 15, 2016 Author Report Share Posted April 15, 2016 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 More sharing options...
0 vbawol Posted April 15, 2016 Report Share Posted April 15, 2016 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. Brian Soanes 1 Link to comment Share on other sites More sharing options...
Question
BetterDeadThanZed
Does anyone know how I could export a Redis database if I were to move my server to a new location?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now