Closed icy1900 closed 2 years ago
I add some debug code print(str(self.mysql_options.get("data_dir")))
in copy_back.py,
def move_to_tmp_dir(self) -> None:
print(str(self.mysql_options.get("data_dir")))
try:
shutil.move(
str(self.mysql_options.get("data_dir")),
str(self.backup_options.get("tmp_dir")),
)
and find out the print is
None
I thought it was due to there is no data_dir
option in my.cnf but datadir
, so I add a data_dir
with same value as datadir
, but get the same result.
I found 3 error in the script, and create a pull request https://github.com/ShahriyarR/MySQL-AutoXtraBackup/pull/456
and in the log I can see
I am using version 2.0.2, the backup works ok, but the restore operation seems did nothing to the datadir. I've tried to empty the datadir and put a empty file in it, then try to recover the backup, it report as the above, and the datadir is still with only a empty file
the backup have already been manually prepared
my configuration file