From 5762f096296561fca559fb8d165b5fb29105fd61 Mon Sep 17 00:00:00 2001 From: Vitor Trovisco <vmt25@cam.ac.uk> Date: Fri, 22 Jul 2022 15:13:13 +0000 Subject: [PATCH] Update weekly_export.sh - correct the filepath for the archiving directory --- weekly_export.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weekly_export.sh b/weekly_export.sh index c94643b..79332fc 100755 --- a/weekly_export.sh +++ b/weekly_export.sh @@ -42,11 +42,11 @@ if ./canto/script/canto_docker --non-interactive ./script/canto_export.pl canto #Define date-time-stamped filename for archiving EXPORT_FILENAME_ARCHIVE="canto_server_export_$(date +"%Y-%m-%d").json" - log "Archiving ${EXPORT_FILENAME} to "${ARCHIVE}/${EXPORT_FILENAME_ARCHIVE}"" + log "Copying ${EXPORT_FILENAME} Archiving ${EXPORT_FILENAME} to "${ARCHIVE}/${EXPORT_FILENAME_ARCHIVE}"" #Copying the export file to within flybase-vm's archives, both as the generic 'canto_server_export_latest.json' file, which will be overwritten every week, as a date-stamped version - cp "${EXPORT_DIR}/${EXPORT_FILENAME}" "${ARCHIVE}/${EXPORT_FILENAME}" - cp "${EXPORT_DIR}/${EXPORT_FILENAME}" "${ARCHIVE}/${EXPORT_FILENAME_ARCHIVE}" + cp "${EXPORT_DIR}/${EXPORT_FILENAME}" "${EXPORTVM_EXPORT_ARCHIVE}/${EXPORT_FILENAME}" + cp "${EXPORT_DIR}/${EXPORT_FILENAME}" "${EXPORTVM_EXPORT_ARCHIVE}/${EXPORT_FILENAME_ARCHIVE}" log "Finished" -- GitLab