ethereum / sourcify

Decentralized Solidity contract source code verification service
https://sourcify.dev
MIT License
780 stars 395 forks source link

Scheduling regular Filestore backups #1552

Closed kuzdogan closed 2 months ago

kuzdogan commented 2 months ago

GCP Filestore NFS service does not provide regular backups directly as an option. For that we need to create a scheduled job: https://cloud.google.com/filestore/docs/scheduling-backups

Filestore Backups overview: https://cloud.google.com/filestore/docs/backups

Until we have a regular S3-like sync (#1452), we should have at least daily backups.

After that, we can have it less frequently, although if it does not take too long and costs much, we can keep doing it. When I took the backup manually, it took only a few minutes.

The owner of this task should read the docs comprehensively and make a decision about the backup schedule.

manuelwedler commented 2 months ago

I created a Cloud Scheduler (sourcify-production-nfs-backup-schedule) which runs the Cloud Function sourcify-production-nfs-backup every day at 7 am to trigger the nfs backup.