https://bugs.contribs.org/show_bug.cgi?id=10357

            Bug ID: 10357
           Summary: allow backup of software collection mysql 55, 56 and
                    57 and maybe mariadb
    Classification: Contribs
           Product: SME Contribs
           Version: Futur
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-automysqlbackup
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

currently automysqlbackup only parse /etc/automysqlbackup/myserver.conf when
running automysqlbackup manually or via cron.

by simply copying 
cp /etc/automysqlbackup/myserver.conf /etc/automysqlbackup/myserver57.conf

and editing :
# Backup directory location e.g /backups
CONFIG_backup_dir=${BACKUPDIR}_mysql57
# For connections to localhost. Sometimes the Unix socket file must be
specified.
CONFIG_mysql_dump_socket='--socket=/var/lib/mysql/mysql57.sock'


I was able to run manually a backup for mysql57 doing

automysqlbackup /etc/automysqlbackup/myserver57.conf



it would be great to implement this in the contrib to detect the existence of
alternatives db, and run cron for each available db

also I did the following tempalte custom :
/etc/e-smith/templates-custom/etc/cron.d/runmysqlbackup/10mysql57

{
my $my57 = ${'mysql57-mysqld'}{'status'} || 'disabled';

return '' unless $my57 eq 'enabled';
my $minutes= ${'automysqlbackup'}{'Minute'}||'1';
my $hours= ${'automysqlbackup'}{'Hour'}||'3';
$OUT = "$minutes $hours * * * root /sbin/e-smith/runmysqlbackup
/etc/automysqlbackup/myserver57.conf";

}

-- 
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/

Reply via email to