Fixing ssh in script, removing external from network
This commit is contained in:
parent
5e825162af
commit
0d52f483bf
|
|
@ -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/)"
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ networks:
|
|||
cmc-stg-network:
|
||||
|
||||
cmc-prod-network:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
|
|
|||
Loading…
Reference in a new issue