Skip to content

Commit

Permalink
restore nice support
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <[email protected]>
  • Loading branch information
deitch committed Apr 1, 2024
1 parent fefaeec commit f83d31a
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 f83d31a

Please sign in to comment.