I want to write a script that dumps my database and makes a backup of if. However I've faced a problem. I need to SAVE
database and after that I need to copy a file to another location. The thing is, after I run a SAVE
command with redis-cli, the file permissions are overwritten and set to -rw-rw----
.
How to tell Redis to save the dump.rdb
with another permissions?
I've found this answer: Changing default file permission on redis dump, it describes the same problem I'm facing, however setting umask
didn't help in my case.