FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit a79dc0ed authored by Vitor Trovisco's avatar Vitor Trovisco
Browse files

Update weekly_export.sh - edits to copy the export json into its dedicated...

Update weekly_export.sh - edits to copy the export json into its dedicated folder within flybase-vm's archives: /data/export/archives/canto_export_json
parent e6821943
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,8 @@ EXPORT_DIR="${CANTOSPACE}/import_export"
#Define export filename
EXPORT_FILENAME=canto_server_export_latest.json
#Define filepath to dedicated archives folder at export-vm
EXPORTVM_EXPORT_ARCHIVE="$/data/export/archives/canto_export_json"
log "Starting"
......@@ -37,7 +39,7 @@ if ./canto/script/canto_docker --non-interactive ./script/canto_export.pl canto
if [[ -e "${EXPORT_DIR}/${EXPORT_FILENAME}" ]]; then
# Create archive directory if required
# Create archive directory in canto-space if required
ARCHIVE="${CANTOSPACE}/archive"
if [[ ! -d "${ARCHIVE}" ]]; then
......@@ -59,7 +61,7 @@ if ./canto/script/canto_docker --non-interactive ./script/canto_export.pl canto
}
for FILE in "${ARCHIVE}/${EXPORT_FILENAME_ARCHIVE}" "${EXPORT_DIR}/${EXPORT_FILENAME_ARCHIVE}"; do
for FILE in "${ARCHIVE}/${EXPORT_FILENAME_ARCHIVE}" "${EXPORTVM_EXPORT_ARCHIVE}"; do
archiving ${FILE}
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment