diff --git a/content/en/docs/Administratorguide/audit-logs.md b/content/en/docs/Administratorguide/audit-logs.md deleted file mode 100644 index 2631d1712b3e52420ff0aa7b9c1e3d77b144fbdd..0000000000000000000000000000000000000000 --- a/content/en/docs/Administratorguide/audit-logs.md +++ /dev/null @@ -1,6 +0,0 @@ -# Audit Logs - -After the audit function is enabled, a large number of audit logs will be generated, which occupy large storage space. You can customize an audit log maintenance policy based on the size of available storage space. - -For details, see "Database Security Management \> Configuring Database Audit \> Maintaining Audit Logs" in the _Developer Guide_. - diff --git a/content/en/docs/Administratorguide/backup-and-restoration.md b/content/en/docs/Administratorguide/backup-and-restoration.md index be708caf992a6c76c1f3d14c7cc4780e5eb54b23..e8104ae81a5f6dba8f65c57e5d1922f5240d20cc 100644 --- a/content/en/docs/Administratorguide/backup-and-restoration.md +++ b/content/en/docs/Administratorguide/backup-and-restoration.md @@ -1,9 +1,1452 @@ -# Backup and Restoration - -- **[Overview](overview.md)** - -- **[Physical Backup and Restoration](physical-backup-and-restoration.md)** - -- **[Logical Backup and Restoration](logical-backup-and-restoration.md)** - - +# Backup and Restoration + + + +- [Overview](#overviewa-nameen-us_topic_0242215084a) +- [Physical Backup and Restoration](#physical-backup-and-restorationa-nameen-us_topic_0242218789a) + - [gs\_basebackup](#gs\_basebackupa-nameen-us_topic_0250273516a) +- [Logical Backup and Restoration](#logical-backup-and-restorationa-nameen-us_topic_0242218810a) + - [gs\_dump](#gs\_dumpa-nameen-us_topic_0250273517a) + - [gs\_dumpall](#gs\_dumpalla-nameen-us_topic_0250273518a) + - [gs\_restore](#gs\_restorea-nameen-us_topic_0250273519a) + + + + +## Overview + +For database security purposes, openGauss provides two backup types, multiple backup and restoration solutions, and data reliability assurance mechanisms. + +Backup and restoration can be logically or physically performed. + +- Logical backup and restoration: backs up data by logically exporting data. This method can dump data that is backed up at a certain time point, and restore data only to this backup point. A logical backup does not back up data processed between failure occurrence and the last backup. It applies to scenarios where data rarely changes. Such data damaged due to misoperation can be quickly restored using a logical backup. To restore all the data in a database through logical backup, rebuild a database and import the backup data. Logical backup is not recommended for databases requiring high data availability because it takes a long time for data restoration. Logical backup is a major approach to migrate and transfer data because it can be performed on any platform. +- Physical backup and restoration: copies physical files in the unit of disk blocks from the primary node to the standby node to back up a database. A database can be restored using backup files, such as data files and archive log files. Physical backup is usually used for full backup, quickly backing up and restoring data with low costs if properly planned. + + The two data backup and restoration solutions supported by openGauss are as follows. Methods for restoring data in case of an exception differ for different backup and restoration solutions. + + **Table 1** Comparison between logical and physical backup and restoration + + +
+ | ++ | ++ | ++ | ++ | +
---|---|---|---|---|
+ | ++ | +A plain-text script file containing SQL statements and commands. The commands can be executed on gsql, a command line terminal, to recreate database objects and load table data. + |
+You are advised to use plain-text exported files for small databases. + |
+Before using gsql to restore database objects, you can use a text editor to edit the plain-text export file as required. + |
+
+ | ++ | +A binary file that allows the restoration of all or selected database objects from an exported file. + |
+You are advised to use custom-format archive files for medium or large database. + |
+You can use gs_restore to import database objects from a custom-format archive. + |
+
+ | ++ | +A directory containing directory files and the data files of tables and BLOB objects. + |
++ | +|
+ | ++ | +A tar-format archive that allows the restoration of all or selected database objects from an exported file. It cannot be further compressed and has an 8-GB limitation on the size of a single table. + |
++ | +
- | -- | -
---|---|
- | -Run the following command to check whether SSD is faulty. If yes, analyze the specific cause. -gs_checkperf -i SSD -U omm- |
-
- | -- | -- | -- | -- | -
---|---|---|---|---|
- | -- | -A plain-text script file containing SQL statements and commands. The commands can be executed on gsql, a command line terminal, to recreate database objects and load table data. - |
-You are advised to use plain-text exported files for small databases. - |
-Before using gsql to restore database objects, you can use a text editor to edit the plain-text export file as required. - |
-
- | -- | -A binary file that allows the restoration of all or selected database objects from an exported file. - |
-You are advised to use custom-format archive files for medium or large database. - |
-You can use gs_restore to import database objects from a custom-format archive. - |
-
- | -- | -A directory containing directory files and the data files of tables and BLOB objects. - |
-- | -|
- | -- | -A tar-format archive that allows the restoration of all or selected database objects from an exported file. It cannot be further compressed and has an 8-GB limitation on the size of a single table. - |
-- | -
@@ -83,24 +83,24 @@ openGauss has been started. |
---|
@@ -24,13 +24,13 @@ Perform operations strictly following instructions provided in the guide. Do not |
---|
@@ -94,5 +94,5 @@ Perform operations strictly following instructions provided in the guide. Do not |
---|
+ | ++ | +
---|---|
+ | +Run the following command to check whether SSD is faulty. If yes, analyze the specific cause. +gs_checkperf -i SSD -U omm+ |
+
- | -- | -- | -- | -
---|---|---|---|
- | -- | -- | -- | -
- | -- | -- | -- | -
---|---|---|---|
- | -- | -- | -- | -
- | -- | -- | -- | -
+
+
+## Configuring the Basic Host Information
> **NOTE:**
>Each server must contain the following information. The following uses **node1** as an example.
@@ -145,40 +143,40 @@ The information in bold is only an example. You can replace it as required. Each
**Table 1** Parameter description
-
-
|
---|