diff --git a/templates/common/transfer.sh b/templates/common/transfer.sh
index abf80971e85ae703fc1d5b8d85306f8674e44ae8..d5dff4d45bbdbd8b4ff7394acef076af583ec1a5 100644
--- a/templates/common/transfer.sh
+++ b/templates/common/transfer.sh
@@ -17,7 +17,13 @@ DESTINATION_DIR=${MAIN_LOCAL_FOLDER}/${STARTDATE}/${MEMBER}
 
 mkdir -p ${DESTINATION_DIR}
 
-# Copy the output files
-for file_name in ${OUTPUT_FILES}; do
-  rsync -v ${HPCUSER}@${HPCHOST}:${OUTPUT_DIR}/${file_name} ${DESTINATION_DIR}
-done
+if [[ "x$HPCHOST" == "xlocalhost" ]]; then
+  for file_name in ${OUTPUT_FILES}; do
+    rsync -v ${OUTPUT_DIR}/${file_name} ${DESTINATION_DIR}
+  done
+else
+  # Copy the output files
+  for file_name in ${OUTPUT_FILES}; do
+    rsync -v ${HPCUSER}@${HPCHOST}:${OUTPUT_DIR}/${file_name} ${DESTINATION_DIR}
+  done
+fi