From 514cd58ecd269e90e7a36fabe19a1983454edd4b Mon Sep 17 00:00:00 2001
From: Vitor Trovisco <vmt25@cam.ac.uk>
Date: Thu, 28 Jul 2022 13:30:54 +0000
Subject: [PATCH] Update weekly_routine.sh - stop archiving internally on
 archive folder and move files to new 'canto_input_archive' sub-folder of
 export-vm's archives folder

---
 weekly_routine.sh | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/weekly_routine.sh b/weekly_routine.sh
index eed876a..4d56744 100755
--- a/weekly_routine.sh
+++ b/weekly_routine.sh
@@ -169,13 +169,8 @@ function retry {
 
 log "Starting"
 
-# Create archive directory if required
-ARCHIVE="${CANTOSPACE}/archive"
-
- if [[ ! -d "${ARCHIVE}" ]]; then
-    log "Creating ${ARCHIVE}"
-    mkdir "${ARCHIVE}"
-fi
+# Define archive folder for input files
+ARCHIVE="/data/export/archives/canto_input_archive"
 
 # Create canto_support directory if required
 DATA="${CANTOSPACE}/canto_support"
-- 
GitLab