My nodeBB website is not working anymore
-
@CreeperFace said:
m that because it was not expe
I dug into the redis security and installed a firewall with UFW, denying all incoming connections except HTTP/HTTPS/SSH and allowing all outgoing)
I also put a password on redis and bound it to 127.0.0.1
Will this be sufficient security?
Thanks for all the help, btw! Appreciate it. -
I use logrotate to copy the database and then compress it on a daily basis.
It automatically keeps 7 days, so I cover the time from one provider backup to the next one. -
@wellenreiter You know, I never really got the hang of logrotate. Never liked the config style, but perhaps I'll look into it again.
-
This is the file I use:
/var/lib/redis/*.rdb { rotate 1 daily missingok copy maxsize 500k } /var/lib/redis/*.rdb.1 { rotate 7 daily missingok compress minsize 10k }
It first copies the rdb file to rdb.1 and then compresses it.
7 copies of the compressed file are kept -
If you are fine with just a copy you can use a rotate 7 in the first block and delete the 2nd one
-
There is no CopyZip in logrotate, so you have to do it in two steps