No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

HUAWEI CLOUD Stack 6.5.0 Backup and Restoration Guide 03

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
How Do I Delete Backup Files

How Do I Delete Backup Files

The service deployment system automatically deletes earliest backup files when the backup frequency exceeds the value of Backup times set in the backup policies attached to the database instance. You can also manually delete backup files as required.

Prerequisites

You have implemented manual or scheduled database backup.

Procedure

  1. If the backup policy attached to the database instance is Back up to local server and backup has been performed, perform the following steps to delete backup files saved on the local server:

    1. Use PuTTY to remotely log in to the database node as user paas, and run the following command to switch to user dbuser.

      su - dbuser

    2. Run the following commands to delete locally stored backup files. (Use logical backup files as an example.)

      cd /opt/pub/backup_local

      rm -rf ossdbsvr-10_90_73_178-21@10_90_73_179-21_ossdbsvr-10_90_73_179-21_20160527151800_auto_full_day_physical.tar.gz*

      NOTE:

      Database backup files are saved under the /opt/pub/backup_local directory of the database node. The definitions of file name parameters are as follows:

      • ossdbsvr-10_90_73_178-21@10_90_73_179-21: indicates the database instance name.
      • 20160527151800: is a timestamp.
      • auto: indicates automatic backup. manual: indicates manual backup.
      • physical: indicates physical backup. logical: indicates logical backup.
      • full_day_physical: indicates the full backup of physical backup.
      • .tar.gz: indicates the backup file name extension.
      • .tar.gz.sign: indicates the signature file name extension of the backup file.

  2. If the backup policy attached to the database instance is Back up to remote server and backup has been performed, perform the following steps to delete backup files saved on the remote server:

    If parameters in the backup policy attached to the database instance are set as follows:

    • User name: dbbackup
    • Remote backup path: /opt/bak/backup_remote. The directory owner is dbbackup, and the directory permission is 750.
    1. Log in to the remote server as the dbbackup.
    2. Run the following commands to delete backup files. (Use logical backup files as an example.)

      cd /opt/bak/backup_remote

      rm -rf ossdbsvr-10_90_73_178-21@10_90_73_179-21_ossdbsvr-10_90_73_179-21_20160527151800_auto_full_day_physical.tar.gz*
      NOTE:

      The file name parameters of the files saved under the /opt/bak/backup_remote directory are described as follows:

      • ossdbsvr-10_90_73_178-21@10_90_73_179-21: indicates the database instance name.
      • 20160527151800: is a timestamp.
      • auto: indicates automatic backup. manual: indicates manual backup.
      • physical: indicates physical backup. logical: indicates logical backup.
      • full_day_physical: indicates the full backup of physical backup.
      • .tar.gz: indicates the backup file name extension.
      • .tar.gz.sign: indicates the signature file name extension of the backup file.

Translation
Download
Updated: 2019-06-14

Document ID: EDOC1100062366

Views: 798

Downloads: 9

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next