summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-11-02 14:50:27 +0100
committerCorentin LABBE <clabbe@baylibre.com>2018-11-02 16:42:21 +0100
commit3f7d9d3f134eb0accab94389e0a792f4183448c9 (patch)
tree368cce445a0b3566f77b0cf5b6a46e87e512c33a
parent95212ea3c686f60a520f617abbfe32b0f1fc2353 (diff)
backup: Create a symlink to recent backup
backup will now create a backup-latest symlink to the backup just being made.
-rwxr-xr-xbackup.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/backup.sh b/backup.sh
index f803486..44644f1 100755
--- a/backup.sh
+++ b/backup.sh
@@ -20,3 +20,4 @@ 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"
+ln -sf $BACKUP_DIR backup-latest