mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2024-11-01 08:31:45 +01:00
Merge pull request #20 from mmartinortiz/symlink
Creating symlink from absolute path
This commit is contained in:
commit
fba3172314
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ do
|
|||
gzip -f "$FILENAME"
|
||||
echo "==> Creating symlink to latest backup: $(basename "$FILENAME".gz)"
|
||||
rm "$LATEST" 2> /dev/null
|
||||
cd backup && ln -s $(basename "$FILENAME".gz) $(basename "$LATEST") && cd ..
|
||||
cd /backup && ln -s $(basename "$FILENAME".gz) $(basename "$LATEST") && cd -
|
||||
else
|
||||
rm -rf "$FILENAME"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue