HomeMogDBMogDB StackUqbar
v3.0

Documentation:v3.0

Supported Versions:

Other Versions:

gs_tar

Background

After the backup is compressed using gs_basebackup, the primary data directory is written to a file named base.tar, and other tablespaces are named after their OIDs. The generated data file needs to be decompressed using the gs_tar command.

img NOTE:

  • Currently, the gs_tar command can only be used to decompress archive files generated by gs_basebackup.
  • If a compression level is specified by gs_basebackup, a file ended with gz will be generated. In this case, you need to run the gzip command to decompress the generated .tar package, and then run the gs_tar command to decompress the generated .tar file.

Syntax

Display help information.

gs_tar -? | --help

Display version information.

gs_tar -V | --version

Parameter Description

gs_tar parameters are as follows:

  • -F, -filename=FILENAME

Decompresses a file. This parameter is mandatory.

  • -D, -destination=DIRECTORY

Directory for storing decompressed files. This parameter is mandatory.

Example

gs_tar -D /home/test/dn1 -F /home/test/trunk/install/data/backup/base.tar
Copyright © 2011-2024 www.enmotech.com All rights reserved.