第 1 章 Backing up and restoring MicroShift data
You can manually back up and restore the MicroShift database on all supported systems. For application data, you must create custom procedures.
1.1. About backing up and restoring MicroShift data 复制链接链接已复制到粘贴板!
Before you can create a manual backup, greenboot health checks must finish running and you must stop the MicroShift service.
-
On
rpm-ostreesystems, MicroShift automatically creates a backup on every start. These automatic backups are deleted and replaced with the latest backup each time the system restarts. -
Data is also automatically restored on an
rpm-ostreesystem after a greenboot system rollback. This data restoration ensures that the database matches the software running on the host after the rollback is completed. - On other system types, you must back up and restore data manually.
Automated backups are in the /var/lib/microshift-backups directory by default. You can use this directory for manually backing up and restoring data by specifying it in each command. When you restore a backup, you must use the entire file path.
The following procedures only backup and restore MicroShift data. Application data is not included.