mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2024-11-01 08:31:45 +01:00
commit
37334bf3c3
5 changed files with 5 additions and 5 deletions
4
.github/workflows/image.yml
vendored
4
.github/workflows/image.yml
vendored
|
@ -10,14 +10,14 @@ on:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v3
|
||||
- name: Test Bash scripts
|
||||
run: sudo apt-get -qq update && sudo apt-get install -y devscripts shellcheck && make test
|
||||
build:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
needs: test
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
data
|
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@ test:
|
|||
# Checking for syntax errors
|
||||
set -e; for SCRIPT in *.sh; \
|
||||
do \
|
||||
sh -n $$SCRIPT; \
|
||||
bash -n $$SCRIPT; \
|
||||
done
|
||||
|
||||
# Checking for bashisms (currently not failing, but only listing)
|
||||
|
|
|
@ -47,7 +47,7 @@ do
|
|||
if [ -n "$MAX_BACKUPS" ]
|
||||
then
|
||||
# Execute the delete script, delete older backup or other custom delete script
|
||||
/delete.sh $db $EXT
|
||||
/delete.sh "$db" $EXT
|
||||
fi
|
||||
else
|
||||
rm -rf "$FILENAME"
|
||||
|
|
1
run.sh
1
run.sh
|
@ -18,7 +18,6 @@ fi
|
|||
|
||||
function final_backup {
|
||||
echo "=> Captured trap for final backup"
|
||||
DATE=$(date +%Y%m%d%H%M)
|
||||
echo "=> Requested last backup at $(date "+%Y-%m-%d %H:%M:%S")"
|
||||
exec /backup.sh
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue