I'm trying to run innobackup script to perform full backup on a MySQL docker instance using the following script:
innobackupex --datadir=/usr/local/mysql/ -s --host=node1 --port=31057 --user=root --password=abc --compress --compress-threads=8 --stream=xbstream --parallel=4 ./ > /data/mysql-backup/2017-05-22/full/backup.xbstream
I have a database named abc and while executing the above script, its throwing the following error:
innobackupex: File './abc/tracking_rule.frm' not found (Errcode: 2 - No such file or directory)
InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
[01] error: cannot open file ./abc/tracking_rule.frm
[01] Error: copy_file() failed.
Failed to copy file ./abc/tracking_rule.frm"
I can see the file physically present in the datadir.
Moreover cksum ./abc/tracking_rule.frm
failed. It gave the error:
No file or directory