diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-12-11 09:58:38 +0100 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-12-11 10:07:16 +0100 |
commit | 2bd0840b929f31506c0dc19eb0d9a92975f004bc (patch) | |
tree | 95859c2d7c604b9c130f790e613ab42cc10751f8 /backup.sh | |
parent | dbb6b647fc421fb9c70620e2fe725cc5546c0702 (diff) |
backup: remove backup-latest link
When backup-latest destination exists, the new backup-latest is created
inside.
The simpliest way fo fix that is to always remove backup-latest before
creating it.
Diffstat (limited to 'backup.sh')
-rwxr-xr-x | backup.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -20,4 +20,5 @@ docker cp $DOCKERID:/root/joboutput.tar.gz $BACKUP_DIR/ || exit $? docker exec -ti $DOCKERID rm /root/joboutput.tar.gz || exit $? echo "Backup done in $BACKUP_DIR" +rm -f backup-latest ln -sf $BACKUP_DIR backup-latest |