Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini memberikan petunjuk tentang cara membuat pencadangan manual on-demand instance Harbor di Google Distributed Cloud (GDC) yang terisolasi.
Cadangan manual membuat cadangan instance Harbor pada titik waktu tertentu. Anda dapat membuat cadangan manual di luar jadwal yang ditentukan oleh rencana pencadangan. Namun, Anda harus membuat rencana cadangan untuk membuat cadangan manual, karena cadangan manual mewarisi atribut dari rencana cadangan.
Sebelum memulai
Untuk membuat cadangan manual, Anda harus memiliki akses ke hal berikut:
Peran akses dan identitas yang diperlukan:
Admin Instance Harbor: memiliki akses penuh untuk mengelola instance Harbor dalam project. Minta Admin IAM Organisasi Anda untuk memberi Anda peran Admin Instance Harbor (harbor-instance-admin).
Admin Rahasia: diperlukan untuk beroperasi di konsol GDC. Minta Admin IAM Organisasi Anda untuk memberi Anda peran Secret Admin (secret-admin).
Rencana cadangan yang ada. Cadangan manual mewarisi atribut
rencana cadangan ini. Untuk mengetahui informasi selengkapnya, lihat
Membuat rencana pencadangan.
Buat cadangan manual
Buat pencadangan manual di konsol GDC atau API.
Konsol
Login ke konsol GDC.
Di menu navigasi, klik Backup for harbor instance.
Klik Rencana cadangan.
Klik nama rencana cadangan di tabel yang akan
dibuat cadangan manualnya.
Klik saveMulai pencadangan.
Di kolom Nama cadangan, masukkan nama untuk cadangan.
Opsional: Di kolom Deskripsi cadangan, masukkan deskripsi untuk membedakan cadangan ini dari cadangan lainnya.
Opsional: Untuk menghapus cadangan secara otomatis setelah beberapa hari, ikuti langkah-langkah berikut:
INSTANCE_NAMESPACE: namespace yang berisi
instance Harbor. Backup harus berada di namespace yang sama dengan instance Harbor.
BACKUP_PLAN_NAME: referensi untuk rencana
pencadangan. Konfigurasi cadangan diwarisi dari rencana cadangan, termasuk
repositori cadangan untuk menyimpan dan Instance Harbor yang akan dicadangkan.
RETAIN_DAYS: jumlah hari cadangan
tetap ada di repositori cadangan. Kebijakan retensi dalam rencana pencadangan akan diganti. Untuk mengetahui informasi selengkapnya, lihat Membuat rencana cadangan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)"]]