You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
mysql_opts="--defaults-file={{mysql_backup_defaults}}"
|
|
backupdir="{{mysql_backup_dir}}"
|
|
|
|
[[ ! -d "$backupdir" ]] && mkdir -p "$backupdir"
|
|
rm -rf "$backupdir"/*
|
|
xtrabackup $mysql_opts --backup --target-dir="$backupdir"
|