innoback up should check the existence of rsync
Bug #1352670 reported by
Matthew B
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Triaged
|
Low
|
Unassigned | ||
2.1 |
Triaged
|
Low
|
Unassigned | ||
2.2 |
Triaged
|
Low
|
Unassigned | ||
2.3 |
Triaged
|
Low
|
Unassigned |
Bug Description
So, if you specify -rsync, innobackup should check that exists BEFORE starting the backup process. Very rude awakening to come back to a backup session hours later and discover it failed because the sysadmin forgot to install it.
140804 21:22:53 Starting rsync as: rsync -t "/db/mysql-data" --files-
sh: rsync: command not found
innobackupex: Error: rsync failed: No such file or directory at /usr/bin/
This is a simple sanity check. In fact, all checks should happen first, like the existence of tar or gzip or xbstream.
tags: | added: low-hanging-fruit |
To post a comment you must log in.
Confirmed with 2.2.3. Even rysnc is not found still, giving msg that " rsync finished successfully."
root@nilnandan- Dell-XPS: /var/lib/ mysql# xtrabackup --version Dell-XPS: /var/lib/ mysql#
xtrabackup version 2.2.3 based on MySQL server 5.6.17 Linux (x86_64) (revision id: )
root@nilnandan-
root@nilnandan- Dell-XPS: /var/lib/ mysql# innobackupex --user=root --password=root --rsync /home/nilnandan /backup
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.
... from="/ tmp/xtrabackup_ rsyncfiles_ pass1" "/home/ nilnandan/ backup/ 2014-08- 19_14-11- 38" mysql/percona/ checksums. frm' mysql/mysql/ *.{frm, isl,MYD, MYI,MAD, MAI,MRG, TRG,TRN, ARM,ARZ, CSM,CSV, opt,par} ' (74 files) mysql/performan ce_schema/ *.{frm, isl,MYD, MYI,MAD, MAI,MRG, TRG,TRN, ARM,ARZ, CSM,CSV, opt,par} ' (53 files) from="/ tmp/xtrabackup_ rsyncfiles_ pass2" "/home/ nilnandan/ backup/ 2014-08- 19_14-11- 38" innobackupex line 4149. Dell-XPS: /var/lib/ mysql#
140819 14:11:45 Starting rsync as: rsync -t "/var/lib/mysql" --files-
sh: 1: rsync: not found
140819 14:11:45 rsync finished successfully.
...
innobackupex: Backing up file '/var/lib/
innobackupex: Backing up files '/var/lib/
innobackupex: Backing up files '/var/lib/
140819 14:11:45 Starting rsync as: rsync -t "/var/lib/mysql" --files-
>> log scanned up to (20284873353)
sh: 1: rsync: not found
innobackupex: Error: rsync failed: No such file or directory at /usr/bin/
140819 14:11:45 innobackupex: Waiting for ibbackup (pid=29996) to finish
root@nilnandan-