Dotcloud: how to load redis backup file at startup

I can not find a way to load redis my own dump.rdb backup file at startup, in dotcloud. I see in the server logs that redis is downloading the file, but I don’t know where it is (and I cannot find it)

[144] 03 Jul 21:01:18 * DB loaded from disk: 0 seconds

I tried putting dump.rdb in a directory /var/lib/redis, but it doesn’t help

Thanks for any help

+5
source share
1 answer

I found what I did wrong: on reboot, redis creates a dump and overwrites my dump file with an empty dump and reloads the empty dump at startup. The correct process is:

~$ dotcloud ssh [your service]
~$ sudo /etc/init.d/redis stop
~$ cp [your dump] /var/lib/redis/dump.rdb
~$ sudo /etc/init.d/redis start
+8
source

All Articles