holland-backup / holland

Holland Backup Manager
http://hollandbackup.org
Other
152 stars 49 forks source link

mariabackup 10.5.8 - unknown option '--no-timestamp' #318

Closed racker7 closed 3 years ago

racker7 commented 3 years ago

This option needs to be removed for the holland mariadb backups to work on the below versions afaikt. After commenting it out holland worked.

/usr/lib/python2.7/site-packages/holland/backup/mariabackup/util.py: args.append("--no-timestamp")

Centos7 3.10.0-1160.2.2.el7.x86_64 x86_64 MariaDB-compat-10.5.8-1.el7.centos.x86_64 MariaDB-server-10.5.8-1.el7.centos.x86_64 MariaDB-backup-10.5.8-1.el7.centos.x86_64 MariaDB-client-10.5.8-1.el7.centos.x86_64 MariaDB-common-10.5.8-1.el7.centos.x86_64 holland-mysql-1.1.21-1.el7.noarch holland-common-1.1.21-1.el7.noarch holland-1.1.21-1.el7.noarch holland-mariabackup-1.1.21-1.el7.noarch holland-mysqldump-1.1.21-1.el7.noarch

~ ]# holland backup xtrabak
Holland 1.1.21 started with pid 4544
--- Starting backup run ---
Creating backup path /var/spool/holland/xtrabak/20201219_164726
* Generating mysql option file: /var/spool/holland/xtrabak/20201219_164726/my.cnf
  + Added !include /root/.my.cnf
  + Added !include /etc/my.cnf
  + Added [client] section with credentials                             from [mysql:client] section
Estimated Backup Size: 128.31MB
Starting backup[xtrabak/20201219_164726] via plugin mariabackup
Executing: /bin/mariabackup --version
/bin/mariabackup based on MariaDB server 10.5.8-MariaDB Linux (x86_64)
Executing: /bin/mariabackup --defaults-file=/var/spool/holland/xtrabak/20201219_164726/my.cnf --backup --stream=xbstream --tmpdir=/var/spool/holland/xtrabak/20201219_164726 --no-timestamp --target-dir=/var/spool/holland/xtrabak/20201219_164726
  > /var/spool/holland/xtrabak/20201219_164726/backup.mb.gz 2 > /var/spool/holland/xtrabak/20201219_164726/mariabackup.log
!! mariabackup  exited with failure status [2]
    ! /bin/mariabackup: unknown option '--no-timestamp'
mariabackup  exited with failure status [2]
Backup failed after 0.08 seconds
auto-purge-failures not enabled. Failed backup not purged.
Backup failed: Failed backup: xtrabak
Released lock /etc/holland/backupsets/xtrabak.conf
--- Ending backup run ---

-Melissa E

gregherrell commented 3 years ago

I would like to add that the following commit needs done as well. mariabackup 10.4 has a different return code and holland fails unless this commit is applied.

https://github.com/holland-backup/holland/pull/312/commits/ccd6c1ce4f902e93153947b5942e12dba87a1628

On Sat, Dec 19, 2020, 6:06 PM Melissa England notifications@github.com wrote:

This option needs to be removed for the holland mariadb backups to work on the below versions afaikt. After commenting it out holland worked.

/usr/lib/python2.7/site-packages/holland/backup/mariabackup/util.py: args.append("--no-timestamp")

Centos7 3.10.0-1160.2.2.el7.x86_64 x86_64 MariaDB-compat-10.5.8-1.el7.centos.x86_64 MariaDB-server-10.5.8-1.el7.centos.x86_64 MariaDB-backup-10.5.8-1.el7.centos.x86_64 MariaDB-client-10.5.8-1.el7.centos.x86_64 MariaDB-common-10.5.8-1.el7.centos.x86_64 holland-mysql-1.1.21-1.el7.noarch holland-common-1.1.21-1.el7.noarch holland-1.1.21-1.el7.noarch holland-mariabackup-1.1.21-1.el7.noarch holland-mysqldump-1.1.21-1.el7.noarch

~ ]# holland backup xtrabak Holland 1.1.21 started with pid 4544 --- Starting backup run --- Creating backup path /var/spool/holland/xtrabak/20201219_164726

  • Generating mysql option file: /var/spool/holland/xtrabak/20201219_164726/my.cnf
    • Added !include /root/.my.cnf
    • Added !include /etc/my.cnf
    • Added [client] section with credentials from [mysql:client] section Estimated Backup Size: 128.31MB Starting backup[xtrabak/20201219_164726] via plugin mariabackup Executing: /bin/mariabackup --version /bin/mariabackup based on MariaDB server 10.5.8-MariaDB Linux (x86_64) Executing: /bin/mariabackup --defaults-file=/var/spool/holland/xtrabak/20201219_164726/my.cnf --backup --stream=xbstream --tmpdir=/var/spool/holland/xtrabak/20201219_164726 --no-timestamp --target-dir=/var/spool/holland/xtrabak/20201219_164726

      /var/spool/holland/xtrabak/20201219_164726/backup.mb.gz 2 > /var/spool/holland/xtrabak/20201219_164726/mariabackup.log !! mariabackup exited with failure status [2] ! /bin/mariabackup: unknown option '--no-timestamp' mariabackup exited with failure status [2] Backup failed after 0.08 seconds auto-purge-failures not enabled. Failed backup not purged. Backup failed: Failed backup: xtrabak Released lock /etc/holland/backupsets/xtrabak.conf --- Ending backup run ---

-Melissa E

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/holland-backup/holland/issues/318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAKPPOGY7G6BLKJBIJ4SODSVUWYZANCNFSM4VCUBOQQ .

soulen3 commented 3 years ago

Both of these issue have been addressed in 1.2.2. As per https://github.com/holland-backup/holland/issues/317, we're working getting a python3 version of holland released for EL7