alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
55 stars 14 forks source link

Automate GitLab export #832

Open jemrobinson opened 3 years ago

jemrobinson commented 3 years ago

:scroll: Description

Currently exporting GitLab repos is a manual process involving:

:strawberry: Desired behaviour

Even with the constraints that GitLab can only be accessed from inside the Safe Haven, it would be nice if the above could be scripted - either on the DSVM or on the GitLab VM.

:page_facing_up: Tasks

jemrobinson commented 10 months ago

Is this something we want to do in Powershell? If not, does the issue also apply to Gitea in Pulumi?

craddm commented 9 months ago

Removed this from the 4.2.0 milestone - won't implement in the Powershell version.

JimMadge commented 9 months ago

Gitea backup and restore docs

Inside the gitea-dump-1482906742.zip file, will be the following:

  • app.ini - Optional copy of configuration file if originally stored outside the default custom/ directory
  • custom/ - All config or customization files in custom/.
  • data/ - Data directory (APP_DATA_PATH), except sessions if you are using file session. This directory includes attachments, avatars, lfs, indexers, SQLite file if you are using SQLite.
  • repos/ - Complete copy of the repository directory.
  • gitea-db.sql - SQL dump of database
  • log/ - Various logs. They are not needed for a recovery or migration.