We would like the users to enable the feature of snapshot on every workspace they own or are administrators in. A snapshot will create a restore point of the entire workspace at any point in time. This includes:
roles
environments
secrets
projects
workspace details
events
Snapshots can be created in the following ways:
manually
creating a cron job that will do it for them
Related functionalities:
Delete snapshot
Get a list of all snapshots
Restore to a particular snapshot (doing so will remove all the snapshots mad after this point)
Solution
[ ] We would need to store the snapshots in JSON/YAML format in an S3 compatible storage device.
[ ] Create a model in schema.prisma to store the details like name, createdOn, s3FileKey in our database.
[ ] Create service and controller for implementing the business logic.
Description
We would like the users to enable the feature of snapshot on every workspace they own or are administrators in. A snapshot will create a restore point of the entire workspace at any point in time. This includes:
Snapshots can be created in the following ways:
Related functionalities:
Solution
schema.prisma
to store the details like name, createdOn, s3FileKey in our database.