Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
0d6f023a
Verified
Commit
0d6f023a
authored
Mar 28, 2021
by
Sven-Hendrik Haase
Browse files
backup-mysql: ensure rm path never expands to /*
parent
73a48d43
Pipeline
#5944
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/borg_client/templates/backup-mysql.sh.j2
View file @
0d6f023a
...
...
@@ -4,5 +4,5 @@ mysql_opts="--defaults-file={{mysql_backup_defaults}}"
backupdir
=
"{{mysql_backup_dir}}"
[[
!
-d
"
$backupdir
"
]]
&&
mkdir
-p
"
$backupdir
"
rm
-rf
"
$backupdir
"
/
*
rm
-rf
"
$
{
backupdir
:?
}
"
/
*
mariabackup
$mysql_opts
--backup
--target-dir
=
"
$backupdir
"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment