https://bugs.koozali.org/show_bug.cgi?id=12456
--- Comment #3 from Reidar D. Midtun <[email protected]> ---
Running in bash debug mode gives this output
[root@e-smith db]# bash -x /usr/local/bin/automysqlbackup -bc
/etc/automysqlbackup/mymaria.conf
++ /sbin/e-smith/config getprop automysqlbackup DbPassword
+
PWDMYSQL=jsy29ARXUoRiiQ7xevb+/zuzekEt0Lubbjh0VVCVWqJAlai0YzsbIOy/+dP/BBCoIC8C3bVzNaL/2AY3
++ /sbin/e-smith/db configuration get SystemName
+ SYSTEMNAME=e-smith
++ /sbin/e-smith/config getprop automysqlbackup Mailcontent
+ MAILCONTENT=log
++ /sbin/e-smith/config getprop automysqlbackup Sizemail
+ SIZEMAIL=8000
++ /sbin/e-smith/config getprop automysqlbackup Mailto
+ [email protected]
++ /sbin/e-smith/config getprop automysqlbackup Backupdir
+ BACKUPDIR=/root/backup/db
++ /sbin/e-smith/config getprop automysqlbackup Encrypt
+ ENCRYPT=no
++ /sbin/e-smith/config getprop automysqlbackup Dbencrypt_password
+ DBENCRYPT_PASSWORD=01234567899876543210
++ /sbin/e-smith/config getprop automysqlbackup Backup_local_files
+ BACKUP_LOCAL_FILES=
+ '[' -z /root/backup/db ']'
+ shopt -s extglob
+ let filename_flag_encrypted=0x01
+ let filename_flag_gz=0x02
+ let filename_flag_bz2=0x04
+ let filename_flag_diff=0x08
+ let E=0x00
+ let N=0x00
+ let E_dbdump_failed=0x01
+ let E_backup_local_failed=0x02
+ let E_mkdir_basedir_failed=0x04
+ let E_mkdir_subdirs_failed=0x08
+ let E_perm_basedir=0x10
+ let E_enc_cleartext_delfailed=0x20
+ let E_enc_failed=0x40
+ let E_db_empty=0x80
+ let E_create_pipe_failed=0x100
+ let E_missing_deps=0x200
+ let E_no_basedir=0x400
+ let E_config_backupdir_not_writable=0x800
+ let E_dump_status_failed=0x1000
+ let E_dump_fullschema_failed=0x2000
+ let N_config_file_missing=0x01
+ let N_arg_conffile_parsed=0x02
+ let N_arg_conffile_unreadable=0x04
+ let N_too_many_args=0x08
+ let N_latest_cleanup_failed=0x10
+ let N_backup_local_nofiles=0x20
+ export -f remove_datetimeinfo
+ NO_ARGS=0
+ E_OPTERROR=85
+ (( 2 == 0 ))
+ getopts :c:blh Option
+ case $Option in
+ echo 'MySQL backup method invoked.'
MySQL backup method invoked.
+ echo
+ opt_flag_method_backup=1
+ getopts :c:blh Option
+ case $Option in
+ echo 'Using "/etc/automysqlbackup/mymaria.conf" as optional config file.'
Using "/etc/automysqlbackup/mymaria.conf" as optional config file.
+ echo
+ opt_config_file=/etc/automysqlbackup/mymaria.conf
+ opt_flag_config_file=1
+ getopts :c:blh Option
+ (( 1 ))
+ method_backup
+ manifest_entries_corrupted=()
+ manifest_entries_user_action_required=()
+ load_default_config
+ CONFIG_configfile=/etc/automysqlbackup/myserver.conf
+ CONFIG_backup_dir=/root/backup/db
+ CONFIG_multicore=yes
+ CONFIG_multicore_threads=2
+ CONFIG_do_monthly=01
+ CONFIG_do_weekly=5
+ CONFIG_rotation_daily=6
+ CONFIG_rotation_weekly=35
+ CONFIG_rotation_monthly=150
+ CONFIG_mysql_dump_port=3306
+ CONFIG_mysql_dump_usessl=yes
+ CONFIG_mysql_dump_username=backupuser
+
CONFIG_mysql_dump_password=jsy29ARXUoRiiQ7xevb+/zuzekEt0Lubbjh0VVCVWqJAlai0YzsbIOy/+dP/BBCoIC8C
3bVzNaL/2AY3
+ CONFIG_mysql_dump_host=localhost
+ CONFIG_mysql_dump_host_friendly=e-smith
+ CONFIG_mysql_dump_socket=
+ CONFIG_mysql_dump_create_database=no
+ CONFIG_mysql_dump_use_separate_dirs=yes
+ CONFIG_mysql_dump_compression=gzip
+ CONFIG_mysql_dump_commcomp=no
+ CONFIG_mysql_dump_latest=no
+ CONFIG_mysql_dump_latest_clean_filenames=no
+ CONFIG_mysql_dump_max_allowed_packet=
+ CONFIG_mysql_dump_single_transaction=no
+ CONFIG_mysql_dump_master_data=
+ CONFIG_mysql_dump_full_schema=yes
+ CONFIG_mysql_dump_dbstatus=yes
+ CONFIG_mysql_dump_differential=no
+ CONFIG_backup_local_files=($BACKUP_LOCAL_FILES)
+ CONFIG_db_names=()
+ CONFIG_db_month_names=()
+ CONFIG_db_exclude=('information_schema')
+ CONFIG_table_exclude=()
+ CONFIG_mailcontent=log
+ CONFIG_mail_maxattsize=8000
+ CONFIG_mail_splitandtar=yes
+ CONFIG_mail_use_uuencoded_attachments=no
+ [email protected]
+ CONFIG_encrypt=no
+ CONFIG_encrypt_password=xxxxxxxx
+ trap mail_cleanup EXIT SIGHUP SIGINT SIGQUIT SIGTERM
+ [[ -r /etc/automysqlbackup/myserver.conf ]]
+ let 'N |= 1'
+ echo
+ (( 1 ))
+ [[ -r /etc/automysqlbackup/mymaria.conf ]]
+ source /etc/automysqlbackup/mymaria.conf
++ CONFIG_mysql_dump_username=backupuser
++ CONFIG_mysql_dump_password=xxxxxx
++ CONFIG_mysql_dump_host_friendly=e-smith
++ CONFIG_mysql_dump_create_database=yes
++ CONFIG_debug=1
++ CONFIG_backup_dir=/root/backup/db_mymaria
++ CONFIG_mysql_dump_full_schema=no
++ CONFIG_db_exclude=('performance_schema' 'information_schema' 'sys')
++ CONFIG_mysql_dump_socket=/var/lib/mysql/mysql.sock
++ CONFIG_mailcontent=log
++ CONFIG_mail_maxattsize=8000
++ CONFIG_mail_splitandtar=yes
++ [email protected]
++ CONFIG_encrypt=no
++ CONFIG_encrypt_password=01234567899876543210
++ CONFIG_backup_local_files=($BACKUP_LOCAL_FILES)
++ umask 0077
+ let 'N |= 2'
+ (( ))
+ export LC_ALL=C
+ LC_ALL=C
++ basename /usr/local/bin/automysqlbackup
+ PROGNAME=automysqlbackup
+
PATH=/sbin/e-smith:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/
local/bin:/usr/bin:/bin:/usr/local/mysql/bin
+ version=3.0
+ fields=5
+ directory_checks_enable_logging
+ checkdirs=("${CONFIG_backup_dir}"/{daily,weekly,monthly,latest,tmp})
+ [[ -n '' ]]
+ [[ no = \y\e\s ]]
+ [[ yes = \y\e\s ]]
+ checkdirs=("${checkdirs[@]}" "${CONFIG_backup_dir}/status")
+ tmp_permcheck=0
+ printf '# Checking for permissions to write to folders:\n'
# Checking for permissions to write to folders:
++ dirname /root/backup/db_mymaria
+ printf 'base folder %s ... ' /root/backup
base folder /root/backup ... ++ dirname /root/backup/db_mymaria
+ [[ -d /root/backup ]]
+ printf 'exists ... ok.\n'
exists ... ok.
+ printf 'backup folder %s ... ' /root/backup/db_mymaria
backup folder /root/backup/db_mymaria ... + [[ -d /root/backup/db_mymaria ]]
+ printf 'exists ... writable? '
exists ... writable? + (( ))
+ chk_folder_writable /root/backup/db_mymaria
+ local temp
++ mktemp /root/backup/db_mymaria/tmp.XXXXXX
+ temp=/root/backup/db_mymaria/tmp.kPayTi
+ (( 0 == 0 ))
+ rm /root/backup/db_mymaria/tmp.kPayTi
+ return 0
+ printf 'yes. Proceeding.\n'
yes. Proceeding.
++ date +%N
+ log_file=/root/backup/db_mymaria/localhost-712328179.log
++ date +%N
+ log_errfile=/root/backup/db_mymaria/ERRORS_localhost-713013736.log
+ activateIO /root/backup/db_mymaria/localhost-712328179.log
/root/backup/db_mymaria/ERRORS_local
host-713013736.log
+ touch /root/backup/db_mymaria/localhost-712328179.log
+ exec
+ exec
+ touch /root/backup/db_mymaria/ERRORS_localhost-713013736.log
+ exec
+ exec
+ [[ ! -e /root/backup/db_mymaria/localhost-712328179.log ]]
+ case "${CONFIG_mailcontent}" in
+ cat /root/backup/db_mymaria/localhost-712328179.log
+ mail -s 'MySQL Backup Log for e-smith - 2024-01-11_16h05m'
[email protected]
+ [[ -s /root/backup/db_mymaria/ERRORS_localhost-713013736.log ]]
+ cat /root/backup/db_mymaria/ERRORS_localhost-713013736.log
+ mail -s 'ERRORS REPORTED: MySQL Backup error Log for e-smith -
2024-01-11_16h05m' [email protected]
yndns.org
+ [[ -e /root/backup/db_mymaria/localhost-712328179.log ]]
+ rm -f /root/backup/db_mymaria/localhost-712328179.log
+ [[ -e /root/backup/db_mymaria/ERRORS_localhost-713013736.log ]]
+ rm -f /root/backup/db_mymaria/ERRORS_localhost-713013736.log
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/