Skip to content

Commit

Permalink
Merge pull request #293 from databacker/nice-support
Browse files Browse the repository at this point in the history
restore nice support
  • Loading branch information
deitch authored Apr 1, 2024
2 parents fefaeec + f83d31a commit aba46df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion entrypoint
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/sh

/mysql-backup $@
NICE_CMD=
# if we asked to do by schema, then we need to get a list of all of the databases, take each, and then tar and zip them
if [ "$NICE" = "true" ]; then
NICE_CMD="nice -n19 ionice -c2"
fi

${NICE_CMD} /mysql-backup $@

0 comments on commit aba46df

Please sign in to comment.