Page tree
Skip to end of metadata
Go to start of metadata

You can download a copy of your SolusVM Master's Database in SolusVM under Tools > Database > Download.

Alternatively, you can use the dump script below to generate a backup from the CLI.

Master Database Dump Script

This script can be used to take a compressed dump of the master's database. You can then ftp, scp, rsync, etc. the database off the server.
## Vars
## Get the database details
DN=`grep -m1 $1: ${CONF} | cut -d ':' -f 1`;
DU=`grep -m1 $1: ${CONF} | cut -d ':' -f 2`;
DP=`grep -m1 $1: ${CONF} | cut -d ':' -f 3`;
## Do the dump
echo "Dumping database..."
mysqldump --opt -h localhost --user=${DU} --password=${DP} ${DN} | gzip > /usr/local/solusvm/tmp/${FILENAME};
echo "Complete."

  • No labels