[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eHarbor backup and restore allows for the creation of both scheduled and manual backups of a Harbor instance, providing protection against data loss and enabling long-term data retention.\u003c/p\u003e\n"],["\u003cp\u003eThe system uses custom resources like \u003ccode\u003eHarborInstanceBackup\u003c/code\u003e, \u003ccode\u003eHarborInstanceBackupRepository\u003c/code\u003e, and \u003ccode\u003eHarborInstanceBackupPlan\u003c/code\u003e to manage backups and define backup schedules and retention policies.\u003c/p\u003e\n"],["\u003cp\u003eBackups include both metadata from the Harbor database and artifact data from object storage, stored in S3-compatible object storage buckets.\u003c/p\u003e\n"],["\u003cp\u003eWrite operations to Harbor are restricted during a backup to ensure data consistency, this includes editing configurations, creating projects, or pushing artifacts.\u003c/p\u003e\n"],["\u003cp\u003eThe restore process mirrors the backup architecture, allowing a Harbor instance to be recovered to a previous state using a selected backup.\u003c/p\u003e\n"]]],[],null,["# Overview\n\nThis page provides an overview of Harbor backup and restore operations.\n\nHarbor backup and restore lets you create backups of your Harbor instance and\nrestore that instance in the case of a disaster. Harbor instance backups offer\nthe following benefits:\n\n- **Protect against data loss:** Create scheduled or manual backups to capture your data at a specific point in time.\n- **Long-term retention and archiving:** Use retention policies for long-term data retention and archiving, enabling you to meet regulatory compliance requirements and preserve historical data.\n- **Data consistency:** The backup operation handles the necessary Harbor quiesce and unquiesce steps to ensure data consistency.\n\nFeatures overview\n-----------------\n\nHarbor backup and restore has the following features:\n\n- Set Harbor instances to back up automatically at a scheduled time.\n- Create manual backups on your Harbor instances on-demand to capture your Harbor instances in the exact chosen state.\n- Deploy retention policies to dictate when old backups get deleted and which backups are retained.\n- Restore the Harbor instance from a previously created backup.\n\nTo maintain data consistency, you can't perform write operations to Harbor while a backup is in progress. This restriction includes editing Harbor configurations, creating new Harbor instance projects, and pushing artifacts. For more information, see the Harbor documentation: \u003chttps://goharbor.io/docs/main/administration/backup-restore/#backup-harbor-instance\u003e.\n\nArchitecture overview\n---------------------\n\nHarbor backup and restore leverages existing GDC backup and restore\narchitecture. The system is a distributed backup solution designed for\nKubernetes environments consisting of the following components:\n\n- Custom resources define and manage backups.\n- Backups target both database and artifact registry data sources in object storage.\n- System design addresses high availability and disaster recovery considerations.\n\nThe Harbor backup and restore system consists of the following components:\n\n1. A `HarborInstanceBackup` custom resource is the entry point to interact with the system. This custom resource points to a set of controllers used to reconcile Harbor backup objects. The system uses the `HarborInstanceBackup` resource to create both manual backups that you create, and automatic backups that are created according to backup plan schedule.\n2. The system uses this set of controllers to reconcile the Harbor backup objects:\n 1. The `HarborInstanceBackupRepository` controller monitors the `HarborInstanceBackupRepository` custom resource. The resource represents a backup storage target to reference in `HarborInstanceBackupPlan` and `HarborInstanceBackup`.\n 2. The `HarborInstanceBackupPlan` controller monitors the `HarborInstanceBackupPlan` custom resource, which creates `HarborInstanceBackup` custom resources to the given Harbor instance according to the provided schedule and retention configuration.\n 3. The `HarborInstanceBackup` controller monitors the `HarborInstanceBackup` custom resource to manage the two different backup flows for the persistent data sources of a single Harbor instance. These data sources are metadata in the Harbor database and artifact data in registry object storage.\n3. The system stores backups in S3-compatible objects storage buckets.\n\nThe restore architecture mirrors the design of the backup system.\n\nCreate a backup repository\n--------------------------\n\nHarbor backup repository represents an S3-compatible storage location for your backups. Harbor instances, which manage container images essential for software deployment, require secure and reliable backup mechanisms. For more information, see [Create a backup\nrepository](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/harbor-backup/create-backup-repository-harbor).\n\nCreate backup plans\n-------------------\n\nHarbor backup plans provide the configuration, location, and management\nfunctions for Harbor instance backups. Use backup plans to create scheduled\nautomatic backups. For more information, see [Create a backup\nplan](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/harbor-backup/create-backup-plan-harbor).\n\nCreate manual backups\n---------------------\n\nHarbor backups contain your Harbor instance data. With backup plans, backups\nare created on a schedule that you define. You can also create manual backup on\ndemand. For more information, see [Create a manual\nbackup](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/harbor-backup/create-manual-backup-harbor).\n\nRestore a backup\n----------------\n\nRestore a backup of a Harbor instance in GDC.\nRecover your Harbor instance to a previous state using an existing backup. The\nrestore operation uses the data from the specified backup to recreate the Harbor\ninstance. For more information, see [Create a\nrestore](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/harbor-backup/create-restore-harbor).\n\nWhat's next\n-----------\n\n- [Create a backup repository](/distributed-cloud/hosted/docs/latest/gdch/platform-application/pa-ao-operations/harbor-backup/create-backup-repository-harbor)"]]