Fixing ssh in script, removing external from network

This commit is contained in:
Finley Ghosh 2025-09-14 12:05:48 +10:00
parent 5e825162af
commit 0d52f483bf
2 changed files with 5 additions and 5 deletions

View file

@ -23,10 +23,11 @@ ATTACH_DEST="$TARGET_DIR/attachments_files"
mkdir -p "$PDF_DEST" "$ATTACH_DEST"
# Sync PDF files
rsync -avz --progress "$PDF_SRC/" "$PDF_DEST/"
# Sync attachment files
rsync -avz --progress "$ATTACH_SRC/" "$ATTACH_DEST/"
# Sync PDF files from remote host
rsync -avz -e "ssh -i ~/.ssh/cmc-old" --progress cmc@sales.cmctechnologies.com.au:"$PDF_SRC/" "$PDF_DEST/"
# Sync attachment files from remote host
rsync -avz -e "ssh -i ~/.ssh/cmc-old" --progress cmc@sales.cmctechnologies.com.au:"$ATTACH_SRC/" "$ATTACH_DEST/"
echo "Sync complete. Files are in $TARGET_DIR (pdf/ and attachments_files/)"

View file

@ -115,7 +115,6 @@ networks:
cmc-stg-network:
cmc-prod-network:
external: true
volumes:
db_data: