yunohost/data/hooks/backup/11-conf_ynh_mysql
2016-05-30 09:17:25 +02:00

13 lines
277 B
Bash
Executable file

#!/bin/bash
# Exit hook on subcommand error or unset variable
set -eu
# Source YNH helpers
. /usr/share/yunohost/helpers.d/filesystem
# Backup destination
backup_dir="${1}/conf/ynh/mysql"
# Save MySQL root password
ynh_backup "/etc/yunohost/mysql" "${backup_dir}/root_pwd"