[MDEV-17960] 'mariabackup --prepare': Cannot config file, backup-my.cnf Created: 2018-12-10 Updated: 2021-02-22 Resolved: 2018-12-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup |
| Affects Version/s: | 10.3.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Test Jetco | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
RedHat Enterprise 7.3 |
||
| Issue Links: |
|
||||||||
| Description |
|
I am testing mariabackup. I could successfully make a mariadb backup using mariabackup utility. As the manual said before restore (- Therefore, I executed the following statement:
mariabackup based on MariaDB server 10.3.10-MariaDB Linux (x86_64) It complained 'cannot open backup-my.cnf for reading'. Then I tried the following:
Same error messages! I have already created 'backup-my.cnf' under /etc/my.cnf.d cd /etc/my.cnf.d [root@db1 my.cnf.d]# ll Why did mariabackup complain 'cannot open backup-my.cnf for reading'? |
| Comments |
| Comment by Vladislav Vaintroub [ 2018-12-10 ] |
|
There must be a backup-my.cnf in your backup directory , not in /etc I hope the manual did not say you should supply your own backup-my.cnf It mus be there, in backup directory |
| Comment by Test Jetco [ 2018-12-14 ] |
|
Thank you so much. The ownership of the backup directory is as follows: drwx------. 2 root root 239 Dec 14 21:33 mariadb-backup-20181214213349 Under mariadb-backup-20181214213349, there is the backup-my.cnf file...
I used '- Do I need to decompress the backup files before doing '--prepare'? |
| Comment by Vladislav Vaintroub [ 2018-12-14 ] |
|
This is why we deprecate the --compress, because it is very very confusing to all users. |