-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restoration of INCR fails #29
Comments
Hi @tilt86, First, sorry for the late answer. If you look at the --out-file (default: /var/log/mysql/xtrabackup.out), you should see a more precise error. Can you have a look? |
What does your mysql log say? For me, browsing that log, basically solved my issue. |
Hi, I don't have anymore the server where I used t, but if I reuse it again, I 2015-11-23 18:06 GMT+01:00 bertalanimre notifications@github.com:
-- LP |
I may have a clue why incremental restoraion failes, cause i got a problem with it as well. There is this function
in restoration_tools.py And i believe there is bug here. Incremental backups are indexed from 0 so i do not know why you create a range from 1. When i changed it to for step in range(0, incremental_target + 1): it started working correctly. |
I actually just tested an incremental backup it using the
A restoration test shows that an incremental backup restoration step is missing indeed:
I'm investigating on this. |
Hello,
I'm trying this nice wrapper, but I'm facing an issue when I want to restore an incremental backup, if the number of the incremental backup is > 0.
Here is the folder containing backups: (I've put inside binlog because it's where I have more space on this server)
root@server:/var/lib/mysql/binlog/backup# ls STOR/20150909/INC/ -lth
Then, if I want to restore up to inc_0, I have no error, but I'm not sure it applied inc_0 ??
root@server:/var/lib/mysql/binlog/backup# pyxtrabackup-restore --base-archive=/var/lib/mysql/binlog/backup/STOR/20150909/INC/base_backup_20150909_1527.tar.gz --incremental-archive=/var/lib/mysql/binlog/backup/STOR/20150909/INC/inc_0_backup_20150909_1547.tar.gz --user=root --password=XXXX --data-dir=/var/lib/mysql/data/db
I can test if the data are consistent however.
But If I want to restore up to inc_0, which I want to to, I got errors...
root@server:/var/lib/mysql/binlog/backup# pyxtrabackup-restore --base-archive=/var/lib/mysql/binlog/backup/STOR/20150909/INC/base_backup_20150909_1527.tar.gz --incremental-archive=/var/lib/mysql/binlog/backup/STOR/20150909/INC/inc_1_backup_20150909_1547.tar.gz --user=root --password=XXXX --data-dir=/var/lib/mysql/data/db
Did I do something wrong?
I tried with both python 2.7 and 3.4.
Thanks,
Luc
The text was updated successfully, but these errors were encountered: