The table that follows describes the various data types that MSR manages, and
indicates which data types are backed up when you perform either an automatic
or a manual backup.
Data
Automatic
Manual
Description
Configurations
Yes
Yes
MSR settings.
Repository metadata
Yes
Yes
Metadata about the repositories, charts, and images deployed, such as
architecture and size.
Access control to repos and images
Yes
Yes
Permissions for teams and repositories.
Notary data
Yes
Yes
Signatures and digests for images that are signed.
Scan results
Yes
Yes
Information about security vulnerabilities in your images.
Image and chart content
Yes, when fullBackup is set to true. No, otherwise
No
The images and charts that have been stored in MSR within a
repository; must be backed up separately, depending on the MSR
configuration.
Users, orgs, teams
Yes
Yes
The data related to users, orgs, and teams that MSR backs up.
Vulnerability database
No
No
Database of vulnerabilities, which you can re-download following a
restore operation.
The creation of a complete MSR backup requires that you back up both the
contents of repositories (such as images and charts) and the metadata MSR
manages.
As you can configure MSR for several types of storage backends, the method
for backing up images and charts will vary. The example we offer is for
persistentVolume. If you are using a different storage backend, such as
a cloud provider, you should adhere to the recommended practices for that
system.
When MSR is configured with persistentVolume, images and charts are stored
on the local file system or on mounted network storage.
One way you can back up the images and charts data is by creating a tar archive
of the data volume that MSR uses. To find the path of the volume, describe the
PersistentVolume associated with the PersistentVolumeClaim:
Use the msr backup command to create a backup of the MSR metadata.
The command is present in any API Pod and can be run using the
kubectl exec command.
An example follows of how to create a backup for an MSR installation named
mymsr. The backup contents are streamed to standard output, which is
redirected locally to the file backup.tar.