The includes and excludes are split into different inputBoxes. Either one of them can be filled in. There is the possibility to leave them both empty resulting in a full backup.
Change-Id: I4fa4277906e1a3932356ec6980c200bb2f267375
To make a partial restore of a database possible with mariabackup a structure dump is needed to create the necessary structure of the database before importing the files back to the data-dir of mariadb.
Change-Id: I7ec4250daaacd1b94dff81ceb02b7e0b587f90ca
$() did weird escaping of the include & exclude parameter, eval is evil but in this case needed.
Change-Id: I3ce56d07c9b9dfa6d76d2a1652773bfa62722c28
Signed-Off-By: Emil Breiner <emil.breiner@krumedia.com>
Database includes and excludes have to be strings because in case auf multiple databases in the variable mariabackup identifies the n'th database as parameter and throws an error.
Change-Id: Ibcaa73f809629dd0eb5fc303ab2d84e88f4c211a
The configuration created by the helper of mariaback_full had to much rights set. This sets the by backupninja needed rights on the configurations.
Change-Id: I9e042203bbfdb44fa9684398946e86ec394906aa
mariabackup fails if files from an old backup already exist in the target directory. There is no possibility of automate the pruning of old backups and cleaning up by mariabackup. Automating this process has to be done by the user.
Change-Id: Ifbd93bb58b1afecba5c1012ba6dc48cd3cebc90b
Signed-Off-By: Emil Breiner <emil.breiner@krumedia.com>
This fixes cases where the day component of the when parameter resolved
to a non-zero padded integer under 10, such as "when = 1st at 01"
The comparison against the nowday variable failed consistently since
the date command format used always returned a zero-padded two digit
integer.
The solution chosen is to avoid generating nowday with zero-padding and
remove any zero-padding from whenday parameter using a more thorough
sed pattern which now also removes any non-alphanumeric characters from
the string.
Removing the quote and semicolon characters should be sufficient to
prevent breaking out of the shell command, but this may need reviewed
by someone more knowlegeable in shell scripting.
This allows the handler to fully make use of the advanced command-line
options for "borg create", such as the replaced "exclude*" options and
others like "--read-special" and "--numeric-owner".
The effect of "keep*" options is not straightforward to understand, so
replacing it with a simpler "keep" option, which replicates the
functionality of other backupninja handlers. This also simplifies the
helper, as the use is then only asked how many days of backups to keep.
At the same time, we add "prune_options" which allows for the use of the
"keep*" options as well as other useful prune options, like "--prefix".