fedora-copr / log-detective-website

Data collection page for Log Detective AI
11 stars 8 forks source link

Data backups in production #33

Closed FrostyX closed 7 months ago

FrostyX commented 9 months ago

Do we have backups in CommuniShift for free, administered by Fedora Infra team, or do we have to setup them on our own?

FrostyX commented 9 months ago

@nirik can you please let us know?

siteshwar commented 9 months ago

@FrostyX I am in a similar situation and this answer may be useful for you.

nirik commented 9 months ago

Yeah, no backups of any kind for communishift projects.

Our prod/stg clusters, everything in ansible or the external db server are backed up, but 'content' like netapp volumes of storage pvc's are not. Most services don't have persistent data like that at all, it can be all recreated from the application.

nikromen commented 8 months ago

62 introduces cronjob that tars our data every day - only thing now needed is to add a functionality that will upload this tar somewhere

FrostyX commented 8 months ago

that will upload this tar somewhere

I would go the other way around and set up something, that will periodically download the tarball

FrostyX commented 7 months ago

We can add something like this to Cron:

wget https://log-detective.com/download -O $(date +"log-detective-%Y-%m-%d-%s.tar.gz")
praiskup commented 7 months ago

Done here: https://pagure.io/fedora-infra/ansible/c/1a38d112c72b9c297fe428b3f0c09f406a7c300c?branch=main