spacebase / spacebasenz

Website for SpaceBase New Zealand
http://dev-spacebasenz.pantheonsite.io/
GNU General Public License v2.0
0 stars 0 forks source link

Backup and Forget #188

Open treasuretron opened 4 years ago

treasuretron commented 4 years ago

In GitLab by @richbodo on Jun 5, 2018, 17:36

We should have automated backups to an off-site server.

Right now we just have platform snapshots prior to each push and our local copies that we refresh from time to time.

One article on this: https://platform.sh/blog/backup-and-forget

treasuretron commented 4 years ago

In GitLab by @aspiringweb on Jul 12, 2018, 10:14

removed milestone

treasuretron commented 4 years ago

In GitLab by @aspiringweb on Jul 12, 2018, 10:14

changed time estimate to 3h

treasuretron commented 4 years ago

In GitLab by @aspiringweb on Jul 12, 2018, 10:14

changed weight to 2

treasuretron commented 4 years ago

In GitLab by @aspiringweb on Jul 12, 2018, 10:15

unassigned @richbodo

treasuretron commented 4 years ago

In GitLab by @jayelless on Nov 28, 2018, 16:37

assigned to @richbodo

treasuretron commented 4 years ago

In GitLab by @jayelless on Nov 28, 2018, 16:37

assigned to @jayelless

treasuretron commented 4 years ago

In GitLab by @jayelless on Nov 28, 2018, 16:38

We can do this as outlined in the referenced link to Platform documentation. The steps are:

  1. Rich to create a new user on the Platform envionment called "Automation", with a role of "reader". This account should use a generic email address "automation@spacebase.co" that can be directed to one or more people with responsibility for operations.

  2. Log in as this user and get a Platform API token as per the instructions on https://docs.platform.sh/gettingstarted/cli/api-tokens.html#obtaining-a-token and then set the token on the project as per Step 1 of the referenced link.

  3. Add a new cron entry to the platform.app.yaml file as outlined in step 3 of the referenced documentation. I recommend that it is set to trigger at a time of 15:00 UTC (which is 3 or 4am NZ time depending on daylight saving, 1 or 2am AU time, 6am or 7am US Pacific time, or 9 or 10am US eastern time). I also recommend that the cron entry is initially set to recognise the feature branch created for the update, so it can be tested and confirmed.

Rich needs to do the first step, and then he or I can do the subsequent steps.

treasuretron commented 4 years ago

In GitLab by @richbodo on Nov 29, 2018, 12:50

@jayelless I think I can take this on myself. I would like to work with you on a couple other devopsy things, but this one is too easy and not a priority given the other things on your list - we can use my time for this.

treasuretron commented 4 years ago

In GitLab by @richbodo on Nov 29, 2018, 12:50

unassigned @jayelless

treasuretron commented 4 years ago

In GitLab by @richbodo on Jan 2, 2019, 17:45

removed milestone