--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Thanks JosiahI have tried to do BGSAVE/SAVE/BGREWRITEAOF after copied dump.rdb file in new redis server "/var/lib/redis/6379/" , But after applying these command the appendaof does "0" size and existing data will flush out.i have done the following steps.
1. 1. bgsave on existing server2. stop redis-server and set appenonly no
3. take backup of dump.rdb file
4. move dump.rdb on new server and copy in "/var/lib/redis/6379/" location5.reboot server
6. bgrewriteaof
no existing data on new server..!!!
but i have dump.rdb and appenonly.aof files in backup.existing server 2.8.14 on ubuntu 14.04 LTS and new server 2.8.17 on CentOS 6.5Is the compatibility issue..???? OR i did some wrong steps while data backup...???
On Tue, Sep 23, 2014 at 11:59 PM, bala wagh <bala...@gmail.com> wrote:Thanks JosiahI have tried to do BGSAVE/SAVE/BGREWRITEAOF after copied dump.rdb file in new redis server "/var/lib/redis/6379/" , But after applying these command the appendaof does "0" size and existing data will flush out.i have done the following steps.You need to be more explicit in what you are explaining, because I can interpret several items in your list of steps in more than one way.1. 1. bgsave on existing server2. stop redis-server and set appenonly noStop which server? The old server, or the new server?
3. take backup of dump.rdb file4. move dump.rdb on new server and copy in "/var/lib/redis/6379/" location5.reboot serverAre you rebooting the entire machine? Are you restarting a single process? Are you just restarting the Redis proces? Is this on the new server? The old server? Or are you *starting* a Redis server process?
6. bgrewriteaofThis is being done on the new server?
--> yes
no existing data on new server..!!!In one interpretation of what you have described, it would seem that on your new server, you are *restarting* the Redis process *after* copying the new dump.rdb into the snapshot path. If you *restarted* the new Redis server, then you will have 0 data because the shutdown process on the server overwrites any existing dump. You would instead need to do the following (instead of your current #4 and #5 above):1. shut down new Redis server2. replace the dump.rdb3. start up the new Redis server
But here's the other part: if you have "appendonly yes" in your new server, but your append only file on the new server has no data when it starts up, then you will have no data in the new server. All together, if you are looking to move your data from your old server to your new server, you should perform the following steps:
--> Thats the appropriate steps i want, i missed out something but havent got what it was. thank you very much. It works :)