My nodeBB website is not working anymore
-
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
Copyright © 2024 NodeBB | Contributors