Add option to export/import CI job output logs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

Currently the only way to export/import CI job output logs is by performing a standard backup and excluding all options except build and db. This option is unworkable and inadvisable for two reasons:

  1. The backup of the CI job output logs must be restored to the same version of GitLab as it was created on. This makes archiving CI job output logs impossible because a backup of the CI job output logs is only restorable until the next upgrade of GitLab.

  2. The backup of the CI job output logs requires a backup of the database for the associated CI job metadata. This also makes restoring the CI job output logs unworkable, as there is now a divergent copy of the database from any full backups that have been performed.

The solution for this would be add an option for the user to download/export the CI job output logs as a tar or zip file with the associated pipeline metadata from the GitLab web console. These CI job output logs could then be archived separately from any other backups.

Restoration/import would follow a similar pattern in reverse. The web console would have an option to upload the tar or zip with the associated metadata and the CI job output logs would restore and be viewable.

Relevant Info:

US Government Ticket (Internal access to verified US Citizens only)

User Persona

Ingrid, Infrastructure Operator

Edited by 🤖 GitLab Bot 🤖