Creating a server backup file

Last Updated : Jan 23, 2023 |

About this task

Use the Maintenance Shell to manually create a backup file of the Configuration Server databases. Only the mega user can perform the server database backup.

You can also run maintenance commands on the Configuration Server console.

Before you begin

  • Ensure that the mega user has read and write permissions for the backup folder.

  • Ensure that the database server has a network connection with the Configuration Server you must back up.

  • Ensure that the database server has at least 5% of space available. Use the df -h command to check the available disk space.

  • If you change the user password, update the password in the all file.

Procedure

  1. On the Configuration Server web portal, log in to the Maintenance Shell console as the mega user.
  2. Run the mtc backup server command.
  3. Enter the database host IP address at the Enter Db host IP address prompt.

    For example, enter: 10.104.2.19.

  4. Enter the database password at the Enter Db password prompt.
  5. Enter the database host port at the Enter Db host Port prompt.

    The default port is 5432.

  6. Enter the backup mode at the Enter Backup Mode prompt.

    Enter 1 for Local backup or 2 for Remote backup.

  7. Enter the directory to back up the server backup file.

    For example, enter: /tmp/.

  8. Enter a passphrase at the Enter passphrase prompt.
  9. Enter yes(y) or no(n) at the Do you want to schedule this backup prompt.

Result

The Maintenance Shell console displays the contents of the backup file.