Merge pull request #20 from mmartinortiz/symlink

Creating symlink from absolute path
This commit is contained in:
Fco. Javier Delgado del Hoyo 2019-01-23 20:30:07 +01:00 committed by GitHub
commit fba3172314
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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