mylvmbackup exits with error on empty prefix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mylvmbackup |
In Progress
|
Low
|
Lenz Grimmer | ||
Debian |
New
|
Unknown
|
Bug Description
By default mylvmbackup uses the prefix "backup" for naming the
compressed backup file and as leading directory for the backed up files.
If you want to get backups without any prefix and try to set
prefix=
in /etc/mylvmbacku
Error: Please make sure Temp dir (/snap//) is empty.
The Temp dir was empty before starting mylvmbackup, but the aborted
backup leaves a directory
<mountdir>/-pos
behind.
Other perhaps relevant parameters in mylvmbackup.conf:
xfs=1
mountdir=/snap/
relpath=
backuptype=tar
(omitting the trailing slashes doesn't change the error)
Seems like this happens because of mylvmbackup trying to store the two
internal files
*_mysql.pos
*_my.cnf
in a special subdirectory. (Why is that?)
Changed in mylvmbackup: | |
assignee: | nobody → lenzgr |
Changed in mylvmbackup: | |
importance: | Undecided → Low |
Sorry for the late reply! I can confirm this problem but wonder how you were actually able to enter a non-empty prefix - the code has a check that should abort in this case. Currently, a non-empty prefix is not supported - I will have to investigate if this can be fixed easily. The special subdirectory is created to store the Server's configuration file my.cnf as well as the binlog position information of this host and any replication slaves it might serve.