mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
Fix symlink creation
This commit is contained in:
parent
c2055f02c6
commit
0ca0ac8f68
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ do
|
||||||
then
|
then
|
||||||
gzip -f "$FILENAME"
|
gzip -f "$FILENAME"
|
||||||
rm "$LATEST" 2> /dev/null
|
rm "$LATEST" 2> /dev/null
|
||||||
ln -s "$FILENAME" "$LATEST"
|
cd backup && ln -s $(basename "$FILENAME".gz) $(basename "$LATEST") && cd ..
|
||||||
else
|
else
|
||||||
rm -rf "$FILENAME"
|
rm -rf "$FILENAME"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue