Your image didn't finish uploading
My nodeBB website is not working anymore
-
@MJ you can set up automatic backups for your redis db. Don't need backup service from digital ocean.
-
@pichalite said:
@MJ you can set up automatic backups for your redis db. Don't need backup service from digital ocean.
How do I do that?
-
-
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 -
Does that back up the redis dump file daily, and then extend the backup to 7 days?
Is it not possible to just use a single block for it?
rotate 7
on the*.rdb
? -
If you are fine with just a copy you can use a rotate 7 in the first block and delete the 2nd one
-
Ooh, I see... it gzips it in the 2nd block. Understood, thank you
-
There is no CopyZip in logrotate, so you have to do it in two steps