Context
- I’m using redis. The database is < 100 MB.
- However, I want to make daily backups.
- I’m also running on Ubuntu Server 12.04
When type in:
redis-cli save
I don’t know where dump.rdb is saved to (since redis is started as a service and not in my local directory).
Questions:
-
How do I find where redis is saving my dump.rdb to?
-
Is there someway that I can specify a filename to ‘save’, so I type in something like:
redis-cli save ~/db-2012-06-24.rdb
Thanks
You can set the file location on the redis.conf file (which you start the server with)
look at the server configuration for that:
finding the location of the currently saved file, it depends on how you start the server – where you have the redis-server file – i think you can find it with
ps -e aux | grep redisorps -e | grep redis