Skip to content

Commit cb0e19d

Browse files
authored
Merge pull request #66091 from ShaunaDiaz/OSDOCS-7659
OSDOCS-7659: update backup and restore
2 parents 9336a69 + a0cb352 commit cb0e19d

9 files changed

+67
-77
lines changed

microshift_backup_and_restore/microshift-backup-and-restore.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
:_content-type: ASSEMBLY
22
[id="microshift-backup-and-restore"]
3-
= Backing up and restoring {product-title} data
3+
= Backing up and restoring {microshift-short} data
44
include::_attributes/attributes-microshift.adoc[]
55
:context: microshift-backup-and-restore
66

77
toc::[]
88

9-
You can manually back up and restore the {product-title} database on all supported systems. The {product-title} service must be stopped and Greenboot health checks must be completed prior to any backups.
9+
You can manually back up and restore the {microshift-short} database on all supported systems. Greenboot health checks must be completed and you must stop the {microshift-short} service prior to any backups.
1010

1111
[NOTE]
1212
====
13-
Only {product-title} data is backed up with the following procedures. Application data is not included.
13+
Only {microshift-short} data is backed up with the following procedures. Application data is not included.
1414
====
1515

16-
* On `rpm-ostree` systems, {product-title} automatically creates a backup on every start. These automatic backups are deleted and replaced with the latest backup each time the system restarts.
17-
* If you are using an `rpm-ostree` system, restoring data is also automated. Otherwise, you must back up and restore data manually.
16+
* On `rpm-ostree` systems, {microshift-short} automatically creates a backup on every start. These automatic backups are deleted and replaced with the latest backup each time the system restarts.
17+
* If you are using an `rpm-ostree` system, the data is automatically restored after Greenboot rolls the system back. This data restoration ensures that the database matches the software running on the host after the rollback is completed.
18+
* On other system types, you must back up and restore data manually.
1819
1920
include::modules/microshift-service-stopping.adoc[leveloffset=+1]
2021

microshift_install/microshift-install-rpm.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
:_content-type: ASSEMBLY
22
[id="microshift-install-rpm"]
3-
= Installing {product-title} from an RPM package
3+
= Installing {microshift-short} from an RPM package
44
include::_attributes/attributes-microshift.adoc[]
55
:context: microshift-install-rpm
66

77
toc::[]
88

9-
You can install {product-title} from an RPM package on a machine with {op-system-base-full} {op-system-version}.
9+
You can install {microshift-short} from an RPM package on a machine with {op-system-base-full} {op-system-version}.
1010

1111
//include::snippets/microshift-tech-preview-snip.adoc[leveloffset=+1]
1212

modules/microshift-backing-up-manually.adoc

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,42 @@
44

55
:_content-type: PROCEDURE
66
[id="microshift-backing-up-manually_{context}"]
7-
= Backing up {product-title} data manually
7+
= Backing up {microshift-short} data manually
88

9-
You can back up {product-title} data manually at any time. Data backups are advised before any system updates. Backups are created in the `/var/lib/microshift-backups` directory by default. You can also specify a directory by adding custom parameters to the required backup command.
10-
11-
[NOTE]
12-
====
13-
On `rpm-ostree` systems, {product-title} creates an automatic backup on every start and restores data automatically.
14-
====
9+
You can back up {microshift-short} data manually at any time. Back up your data before system updates to preserve it for use if an update fails or for other system trouble. Automated backups are created in the `/var/lib/microshift-backups` directory. You can use this directory for manually backing up and restoring data by specifying it in each command. When you create a backup, you must use the entire file path for the output file.
1510

1611
.Prerequisites
12+
1713
* You have root access to the host.
18-
* {product-title} is stopped.
14+
* {microshift-short} is stopped.
1915
2016
.Procedure
21-
. Manually create a backup by using the default name and parent directory, `/var/lib/microshift-backups/<default-backup-name>`, by running the following command:
22-
+
23-
[source,terminal]
24-
----
25-
$ sudo microshift backup
26-
----
27-
.Example output
28-
+
29-
[source,terminal]
30-
----
31-
??? I0829 07:32:12.313961 6586 run_check.go:28] "Service state" service="microshift.service" state="inactive"
32-
??? I0829 07:32:12.318803 6586 run_check.go:28] "Service state" service="microshift-etcd.scope" state="inactive"
33-
??? I0829 07:32:12.318897 6586 version.go:227] "START reading version file"
34-
??? I0829 07:32:12.319122 6586 version.go:233] "END reading version file" contents={"version":"4.14.0","deployment_id":"rhel-35d7b5c80f0f1378d6846f6dc1304bbf1dcdc5847198fcd4e6099364eaf99048.0","boot_id":"80364fcf3df54284a6902687e2cdd4c2"}
35-
??? I0829 07:32:12.319256 6586 data_manager.go:82] "Copying data to backup directory" storage="/var/lib/microshift-backups" name="4.14.0__20230829_113212" data="/var/lib/microshift"
36-
??? I0829 07:32:12.319423 6586 data_manager.go:186] "Starting copy" cmd="/bin/cp --verbose --recursive --preserve --reflink=auto /var/lib/microshift /var/lib/microshift-backups/4.14.0__20230829_113212"
37-
??? I0829 07:32:12.324955 6586 data_manager.go:200] "Finished copy" cmd="/bin/cp --verbose --recursive --preserve --reflink=auto /var/lib/microshift /var/lib/microshift-backups/4.14.0__20230829_113212"
38-
??? I0829 07:32:12.325014 6586 data_manager.go:115] "Copied data to backup directory" backup="/var/lib/microshift-backups/4.14.0__20230829_113212" data="/var/lib/microshift"
39-
----
4017

41-
. Optional: Manually create a backup with a specific name in the default directory by running the following command:
18+
. Manually create a backup by using the parent directory and specifying a name, such as `/var/lib/microshift-backups/<my_manual_backup>`, by running the following command:
4219
+
4320
[source,terminal]
4421
----
45-
$ sudo microshift backup --name <my-custom-backup>
22+
$ sudo microshift backup /var/lib/microshift-backups/<my_manual_backup>
4623
----
47-
48-
. Optional: Manually create a backup in a specific parent directory by running the following command:
24+
Replace `<my_manual_backup>` with the backup name that you want to use.
25+
+
26+
.Example output
4927
+
5028
[source,terminal]
5129
----
52-
$ sudo microshift backup --storage /var/lib/<custom-storage-location>
30+
??? I1017 07:38:16.770506 5900 data_manager.go:92] "Copying data to backup directory" storage="/var/lib/microshift-backups" name="test" data="/var/lib/microshift"
31+
??? I1017 07:38:16.770713 5900 data_manager.go:227] "Starting copy" cmd="/bin/cp --verbose --recursive --preserve --reflink=auto /var/lib/microshift /var/lib/microshift-backups/test"
32+
??? I1017 07:38:16.776162 5900 data_manager.go:241] "Finished copy" cmd="/bin/cp --verbose --recursive --preserve --reflink=auto /var/lib/microshift /var/lib/microshift-backups/test"
33+
??? I1017 07:38:16.776256 5900 data_manager.go:125] "Copied data to backup directory" backup="/var/lib/microshift-backups/test" data="/var/lib/microshift"
5334
----
5435

5536
. Optional: Manually create a backup in a specific parent directory with a custom name by running the following command:
5637
+
5738
[source,terminal]
5839
----
59-
$ sudo microshift backup --storage /var/lib/<custom-storage-location>/ --name <my-custom-backup>
40+
$ sudo microshift backup /mnt/<other_backups_location>/<another_manual_backup>
6041
----
42+
Replace `<other_backups_location>` with the directory you want to use and `<my_manual_backup>` with the backup name you want to use.
6143

6244
.Verification
63-
* You can verify that the backup exists by viewing the data in the directory you chose. For example, `/var/lib/microshift-backups/<my-custom-backup>/` or `/var/lib/<custom-storage-location>/<my-custom-backup>/`.
45+
* You can verify that the backup exists by viewing the data in the directory you chose. For example, `/var/lib/microshift-backups/<my_manual_backup>/` or `/mnt/<other_backups_location>/<another_manual_backup>`.

modules/microshift-install-rpm-before.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
:_content-type: CONCEPT
66
[id="microshift-install-rpm-before_{context}"]
7-
= Before installing {product-title} from an RPM package
7+
= Before installing {microshift-short} from an RPM package
88

9-
{product-title} uses the logical volume manager storage (LVMS) Container Storage Interface (CSI) plugin for providing storage to persistent volumes (PVs). LVMS relies on the Linux logical volume manager (LVM) to dynamically manage the backing logical volumes (LVs) for PVs. For this reason, your machine must have an LVM volume group (VG) with unused space in which LVMS can create the LVs for your workload's PVs.
9+
{microshift-short} uses the logical volume manager storage (LVMS) Container Storage Interface (CSI) plugin for providing storage to persistent volumes (PVs). LVMS relies on the Linux logical volume manager (LVM) to dynamically manage the backing logical volumes (LVs) for PVs. For this reason, your machine must have an LVM volume group (VG) with unused space in which LVMS can create the LVs for your workload's PVs.
1010

1111
To configure a volume group (VG) that allows LVMS to create the LVs for your workload's PVs, lower the *Desired Size* of your root volume during the installation of {op-system}. Lowering the size of your root volume allows unallocated space on the disk for additional LVs created by LVMS at runtime.

modules/microshift-install-rpm-preparing.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
:_content-type: PROCEDURE
66
[id="microshift-install-rpm-preparing_{context}"]
7-
= Preparing to install {product-title} from an RPM package
7+
= Preparing to install {microshift-short} from an RPM package
88

99
Configure your {op-system} machine to have a logical volume manager (LVM) volume group (VG) with sufficient capacity for the persistent volumes (PVs) of your workload.
1010

1111
.Prerequisites
1212

13-
* The system requirements for installing {product-title} have been met.
13+
* The system requirements for installing {microshift-short} have been met.
1414
* You have root user access to your machine.
1515
* You have configured your LVM VG with the capacity needed for the PVs of your workload.
1616

modules/microshift-install-system-requirements.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
:_content-type: REFERENCE
66
[id="microshift-install-system-requirements_{context}"]
7-
= System requirements for installing {product-title}
7+
= System requirements for installing {microshift-short}
88

9-
The following conditions must be met prior to installing {product-title}:
9+
The following conditions must be met prior to installing {microshift-short}:
1010

1111
* {op-system} {op-system-version}
1212
* 2 CPU cores
13-
* 2 GB RAM for {product-title} or 3 GB RAM, required by {op-system} for networked-based HTTPs or FTP installations
13+
* 2 GB RAM for {microshift-short} or 3 GB RAM, required by {op-system} for networked-based HTTPs or FTP installations
1414
* 10 GB of storage
15-
* You have an active {product-title} subscription on your Red Hat account. If you do not have a subscription, contact your sales representative for more information.
15+
* You have an active {microshift-short} subscription on your Red Hat account. If you do not have a subscription, contact your sales representative for more information.
1616
* You have a Logical Volume Manager (LVM) Volume Group (VG) with sufficient capacity for the Persistent Volumes (PVs) of your workload.

modules/microshift-restoring-data-backups.adoc

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,50 @@
44

55
:_content-type: PROCEDURE
66
[id="microshift-restoring-data-backups-manually_{context}"]
7-
= Restoring {product-title} data backups manually
7+
= Restoring {microshift-short} data backups manually
88

9-
You can restore {product-title} data from a backup manually. Backups can be restored after updates, or after other system events that remove or damage required data. Backups are in the `/var/lib/microshift-backups` directory by default. When you restore a backup, you must use the entire file path.
9+
You can restore {microshift-short} data from a backup manually. Backups can be restored after updates, or after other system events that remove or damage required data. 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.
1010

1111
[NOTE]
1212
====
13-
On an `rpm-ostree` system, {product-title} backs up and restores data automatically.
13+
On an `rpm-ostree` system, {microshift-short} backs up and restores data automatically.
1414
====
1515

1616
.Prerequisites
17+
1718
* Root access to the host.
1819
* Full path of the data backup file.
19-
* {product-title} is stopped.
20+
* {microshift-short} is stopped.
2021
2122
.Procedure
2223

23-
. Manually restore an application backup file by using the full file path of the backup you want to restore by running the following command:
24+
. Manually restore {microshift-short} data by using the full file path of the backup you want to restore by running the following command:
2425
+
2526
[source,terminal]
2627
----
27-
$ sudo microshift restore /var/lib/<custom_backups>/<my_backup>
28+
$ sudo microshift restore /var/lib/microshift-backups/<my_manual_backup>
2829
----
30+
Replace `<my_manual_backup>` with the backup name that you used. Optional: You can also restore automatic `ostree` backups using the full file path.
2931
+
3032
.Example output
3133
+
3234
[source,terminal]
3335
----
34-
??? I0829 07:33:04.715104 6654 run_check.go:28] "Service state" service="microshift.service" state="inactive"
35-
??? I0829 07:33:04.719562 6654 run_check.go:28] "Service state" service="microshift-etcd.scope" state="inactive"
36-
??? I0829 07:33:04.719681 6654 data_manager.go:121] "Copying backup to data directory" storage="/var/lib/microshift-backups" name="4.14.0__20230829_113212" data="/var/lib/microshift"
37-
??? I0829 07:33:04.719802 6654 data_manager.go:138] "Renaming existing data dir" data="/var/lib/microshift" renamedTo="/var/lib/microshift.saved"
38-
??? I0829 07:33:04.719913 6654 data_manager.go:186] "Starting copy" cmd="/bin/cp --verbose --recursive --preserve --reflink=auto /var/lib/microshift-backups/4.14.0__20230829_113212 /var/lib/microshift"
39-
??? I0829 07:33:04.725032 6654 data_manager.go:200] "Finished copy" cmd="/bin/cp --verbose --recursive --preserve --reflink=auto /var/lib/microshift-backups/4.14.0__20230829_113212 /var/lib/microshift"
40-
??? I0829 07:33:04.725091 6654 data_manager.go:160] "Removing temporary data directory" path="/var/lib/microshift.saved"
41-
??? I0829 07:33:04.727461 6654 data_manager.go:165] "Copied backup to data directory" name="4.14.0__20230829_113212" data="/var/lib/microshift"
36+
??? I1017 07:39:52.055165 6007 data_manager.go:131] "Copying backup to data directory" storage="/var/lib/microshift-backups" name="test" data="/var/lib/microshift"
37+
??? I1017 07:39:52.055243 6007 data_manager.go:154] "Renaming existing data dir" data="/var/lib/microshift" renamedTo="/var/lib/microshift.saved"
38+
??? I1017 07:39:52.055326 6007 data_manager.go:227] "Starting copy" cmd="/bin/cp --verbose --recursive --preserve --reflink=auto /var/lib/microshift-backups/test /var/lib/microshift"
39+
??? I1017 07:39:52.061363 6007 data_manager.go:241] "Finished copy" cmd="/bin/cp --verbose --recursive --preserve --reflink=auto /var/lib/microshift-backups/test /var/lib/microshift"
40+
??? I1017 07:39:52.061404 6007 data_manager.go:175] "Removing temporary data directory" path="/var/lib/microshift.saved"
41+
??? I1017 07:39:52.063745 6007 data_manager.go:180] "Copied backup to data directory" name="test" data="/var/lib/microshift"
42+
----
43+
44+
. Optional. Manually restore data from a customized directory by using the full file path of the backup. Run the following command:
45+
+
46+
[source,terminal]
47+
----
48+
$ sudo microshift restore /<mnt>/<other_backups_location>/<another_manual_backup>
4249
----
50+
Replace `<other_backups_location>` with the directory you used and `<my_manual_backup>` with the backup name you used when creating the backup you are restoring.
4351
+
4452
.Verification
45-
* Verify that your backup is restored by restarting {product-title} and checking the data.
53+
* Verify that your backup is restored by restarting {microshift-short} and checking the data.

modules/microshift-service-starting.adoc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@
44

55
:_content-type: PROCEDURE
66
[id="starting-microshift_service_{context}"]
7-
= Starting the {product-title} service
7+
= Starting the {microshift-short} service
88

9-
Use the following procedure to start the {product-title} service.
9+
Use the following procedure to start the {microshift-short} service.
1010

1111
.Prerequisites
1212

13-
* You have installed {product-title} from an RPM package.
13+
* You have installed {microshift-short} from an RPM package.
1414
1515
.Procedure
1616

17-
. As a root user, start the {product-title} service by entering the following command:
17+
. As a root user, start the {microshift-short} service by entering the following command:
1818
+
1919
[source,terminal]
2020
----
2121
$ sudo systemctl start microshift
2222
----
2323

24-
. Optional: To configure your {op-system} machine to start {product-title} when your machine starts, enter the following command:
24+
. Optional: To configure your {op-system} machine to start {microshift-short} when your machine starts, enter the following command:
2525
+
2626
[source,terminal]
2727
----
2828
$ sudo systemctl enable microshift
2929
----
3030

31-
. Optional: To disable {product-title} from automatically starting when your machine starts, enter the following command:
31+
. Optional: To disable {microshift-short} from automatically starting when your machine starts, enter the following command:
3232
+
3333
[source,terminal]
3434
----
@@ -37,6 +37,5 @@ $ sudo systemctl disable microshift
3737
+
3838
[NOTE]
3939
====
40-
The first time that the {product-title} service starts, it downloads and initializes {product-title}'s container images. As a result, it can take several minutes for {product-title} to start the first time that the service is deployed.
41-
Boot time is reduced for subsequent starts of the {product-title} service.
40+
The first time that the {microshift-short} service starts, it downloads and initializes the container images for {microshift-short}. As a result, it can take several minutes for {microshift-short} to start the first time that the service is deployed. Boot time is reduced for subsequent starts of the {microshift-short} service.
4241
====

modules/microshift-service-stopping.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@
55

66
:_content-type: PROCEDURE
77
[id="stopping-microshift-service_{context}"]
8-
= Stopping the {product-title} service
8+
= Stopping the {microshift-short} service
99

10-
Use the following procedure to stop the {product-title} service.
10+
Use the following procedure to stop the {microshift-short} service.
1111

1212
.Prerequisites
1313

14-
* The {product-title} service is running.
14+
* The {microshift-short} service is running.
1515
1616
.Procedure
1717

18-
. Enter the following command to stop the {product-title} service:
18+
. Enter the following command to stop the {microshift-short} service:
1919
+
2020
[source,terminal]
2121
----
2222
$ sudo systemctl stop microshift
2323
----
2424

25-
. Workloads deployed on {product-title} will continue running even after the {product-title} service has been stopped. Enter the following command to display running workloads:
25+
. Workloads deployed on {microshift-short} might continue running even after the {microshift-short} service has been stopped. Enter the following command to display running workloads:
2626
+
2727
[source,terminal]
2828
----

0 commit comments

Comments
 (0)