Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questa pagina fornisce istruzioni su come creare un backup manuale on demand di un'istanza Harbor in Google Distributed Cloud (GDC) air-gap.
I backup manuali creano un backup di un'istanza Harbor in un momento specifico. Puoi creare backup manuali al di fuori della pianificazione definita da un piano di backup. Tuttavia, devi creare un piano di backup per creare un backup manuale, poiché i backup manuali ereditano gli attributi dai piani di backup.
Prima di iniziare
Per creare un backup manuale, devi disporre dell'accesso a quanto segue:
I ruoli di identità e accesso necessari:
Amministratore istanza Harbor: ha accesso completo alla gestione delle istanze Harbor in un progetto. Chiedi all'amministratore IAM dell'organizzazione di concederti il ruolo Amministratore istanza Harbor (harbor-instance-admin).
Secret Admin: richiesto per operare nella console GDC. Chiedi all'amministratore IAM dell'organizzazione di concederti il ruolo Amministratore secret (secret-admin).
Un piano di backup esistente. Il backup manuale eredita gli attributi di questo piano di backup. Per saperne di più, vedi Creare un piano di backup.
Crea una copia di back manuale
Crea un backup manuale nella console GDC o nell'API.
Console
Accedi alla console GDC.
Nel menu di navigazione, fai clic su Backup per l'istanza di Harbor.
Fai clic su Piani di backup.
Fai clic sul nome del piano di backup nella tabella per cui
creare il backup manuale.
Fai clic su saveAvvia un backup.
Nel campo Nome backup, inserisci un nome per il backup.
(Facoltativo) Nel campo Descrizione backup, inserisci una descrizione per
distinguere questo backup dagli altri.
(Facoltativo) Per eliminare automaticamente i backup dopo un determinato numero di giorni, segui questi passaggi:
Seleziona la casella di controllo Abilita eliminazione automatica dei backup.
Nel campo Elimina backupdopo, imposta il numero di giorni per cui conservare il backup. Una volta raggiunto il numero di giorni, il backup viene eliminato automaticamente.
Fai clic su Crea. Il backup viene visualizzato nella tabella dei backup.
BACKUP_NAME: il nome del backup in fase di creazione.
INSTANCE_NAMESPACE: lo spazio dei nomi contenente l'istanza Harbor. Il backup deve trovarsi nello stesso spazio dei nomi dell'istanza Harbor.
BACKUP_PLAN_NAME: il riferimento per il piano di backup. La configurazione del backup viene ereditata dal piano di backup, incluso
il repository di backup in cui archiviare e di quale istanza Harbor eseguire il backup.
RETAIN_DAYS: il numero di giorni per cui i backup
vengono conservati nel repository di backup. Il criterio di conservazione nel piano di backup viene ignorato. Per saperne di più, crea un piano di
backup.
BACKUP_DESCPRITON: una descrizione testuale del backup.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThis guide outlines the process for creating an on-demand manual backup of a Harbor instance within Google Distributed Cloud (GDC) air-gapped environments.\u003c/p\u003e\n"],["\u003cp\u003eManual backups capture the state of a Harbor instance at a specific time, but require a pre-existing backup plan from which they inherit their attributes.\u003c/p\u003e\n"],["\u003cp\u003eYou need the Harbor Instance Admin and Secret Admin roles to create manual backups.\u003c/p\u003e\n"],["\u003cp\u003eManual backups can be initiated via the GDC console or the API, with options to set a custom name, description, and automatic deletion policy.\u003c/p\u003e\n"],["\u003cp\u003eDuring the backup creation process, the Harbor instance is temporarily set to read-only mode, preventing new artifacts from being pushed to the repository.\u003c/p\u003e\n"]]],[],null,["# Create a manual backup\n\nThis page provides instructions on how to create an on-demand manual backup of a Harbor instance in Google Distributed Cloud (GDC) air-gapped.\n\nManual backups create a backup of a Harbor instance at a specific point in time. You can create manual backups outside of the schedule defined by a backup plan. However, you must create a backup plan to create a manual backup, as manual backups inherit attributes from backup plans.\n\nBefore you begin\n----------------\n\nTo create a manual backup, you must have access to the following:\n\n- The necessary identity and access roles:\n\n - Harbor Instance Admin: has full access to manage Harbor instances in a project. Ask your Organization IAM Admin to grant you the Harbor Instance Admin (`harbor-instance-admin`) role.\n - Secret Admin: required for operating in the GDC console. Ask your Organization IAM Admin to grant you the Secret Admin (`secret-admin`) role.\n- An existing backup plan. The manual backup inherits the attributes of\n this backup plan. For more information, see\n [Create a backup plan](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/harbor-backup/create-backup-plan-harbor).\n\nCreate a manual backup\n----------------------\n\nCreate a manual backup in the GDC console or the API. \n\n### Console\n\n1. Sign in to the GDC console.\n2. In the navigation menu, click **Backup for harbor instance**.\n3. Click **Backup plans**.\n4. Click the name of the backup plan in the table for which to create the manual backup for.\n5. Click save**Start a backup**.\n\n | **Note:** During the backup process, the Harbor instance is temporarily switched to read-only mode. In read-only mode, the instance can't push new artifacts to the repository.\n6. In the **Backup name** field, enter a name for the backup.\n\n7. Optional: In the **Backup description** field, enter a description to\n distinguish this backup from others.\n\n8. Optional: To automatically delete backups after a certain number of\n days, follow these steps:\n\n 1. Select the **Enable automatic backup deletion** checkbox.\n 2. In the **Delete backups** **after** field, set the number of days for which to retain the backup. Once the number of days is reached, the backup is automatically deleted.\n9. Click **Create**. The backup appears in the backup table.\n\n### API\n\n apiVersion: artifactregistry.gdc.goog/v1\n kind: HarborInstanceBackup\n metadata:\n name: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eBACKUP_NAME\u003c/span\u003e\u003c/var\u003e\n namespace: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eINSTANCE_NAMESPACE\u003c/span\u003e\u003c/var\u003e\n spec:\n backupPlanName: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eBACKUP_PLAN_NAME\u003c/span\u003e\u003c/var\u003e\n manual: true\n retainDays: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eRETAIN_DAYS\u003c/span\u003e\u003c/var\u003e\n description: \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-l devsite-syntax-l-Scalar devsite-syntax-l-Scalar-Plain\"\u003eBACKUP_DESCPRITON\u003c/span\u003e\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eBACKUP_NAME\u003c/var\u003e: the name of the backup being created.\n- \u003cvar translate=\"no\"\u003eINSTANCE_NAMESPACE\u003c/var\u003e: the namespace containing the Harbor instance. The backup must be in the same namespace as the Harbor instance.\n- \u003cvar translate=\"no\"\u003eBACKUP_PLAN_NAME\u003c/var\u003e: the reference for the backup plan. The backup configuration is inherited from the backup plan, including the backup repository to store and which Harbor Instance to backup.\n- \u003cvar translate=\"no\"\u003eRETAIN_DAYS\u003c/var\u003e: the number of days the backups persist in the backup repository for. The retention policy in the backup plan is overridden. For more information, [Create a backup\n plan](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/harbor-backup/create-backup-plan-harbor).\n- \u003cvar translate=\"no\"\u003eBACKUP_DESCPRITON\u003c/var\u003e: a text description of the backup.\n\nWhat's next\n-----------\n\n- [Manage a backup](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/harbor-backup/manage-backup-harbor)"]]