Jump to Navigation

dba

021 - MySQL Backup Script Sample1

This is a sample backup script to keep the mysql dump for 3 days.

Example:

#!/bin/bash

# Set parameters for MySQL
DBNAME=database_name
#HOST=host_name
USER=user_name
PASSWORD=password

# Set parameters for the backup path
ROOT_PATH=/var/www/vhosts/your domain/data
BKUP_PATH=/var/www/vhosts/your domain/backups

MySQL:
Linux:
Subscribe to RSS - dba


Main menu 2

by Dr. Radut