Skip to main content
All CollectionsKnowledge BaseEnterprise WorkloadsTroubleshooting - Enterprise Workloads
Sample pre-backup script for System State Backup and MySQL Dump
Sample pre-backup script for System State Backup and MySQL Dump
Updated over a week ago

This article applies to:

  • Phoenix Cloud

  • System State backup

  • MySQL Dump

  • File Server

Overview

Phoenix allows administrators to configure File server agents to execute custom pre-backup scripts and post-backup scripts.
For more details, refer Pre backup and post backup scripts for File server.

The objective of this topic is to back up the following using pre-backup scripts:

  • Domain Controller

  • MySQL DB

Procedure

Create the pre-backup scripts as per the following conventions:

  • Linux File server: pre_script.sh and post_script.sh

  • Windows File server: pre_script.bat and post_script.bat

Commands

Command for system state backup


πŸ“ Note
​wbadmin start systemstatebackup -backupTarget\\servername\share -quiet


Command for MySQL Dump


πŸ“ Note
​For all databases mysqldump -u root -p --all-databases -h hostname > /var/log/databases/AllDB.sqlFor a single database named TestDB: mysqldump-u root -p TestDB > tut_backup.sql


Did this answer your question?