It would be useful to know where Redis server is saving its aof and rdb file when querying a running server via the INFO command.

On a Mac for development, I built redis in ~/src/redis-2.6.12/ and created a symlink in /usr/local/bin for the build products. I found the dump.rdb in ~/ which was not where I would expect to find it.

Comment From: charsyam

@phpguru hi, guy.

Do you want to see like this?

https://github.com/antirez/redis/pull/1070

Thank you.

Comment From: yoav-steinberg

rdb/aof files are written to the working directory. You can see (and change) the working dir via the dir configuration in redis.conf. You can use CONFIG GET dir and CONFIG GET dbfilename/CONFIG get appendfilename to view the configuration.