Metalfoundry Posted December 11, 2014 Report Share Posted December 11, 2014 Hey guys, is there a way to autobackup the database, if my server is at a big hoster? It´s not a root server. Which files i have to backup? Link to comment Share on other sites More sharing options...
ClontarfX Posted December 11, 2014 Report Share Posted December 11, 2014 The "database" is in two locations; Memory 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 More sharing options...
TayTayTheKiller Posted December 11, 2014 Report Share Posted December 11, 2014 the auto rotatelogs .bat backs up the database I just copied it all into my start up bat so it gets saved every restart. Link to comment Share on other sites More sharing options...
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