prod #123
|
|
@ -77,10 +77,16 @@ ENVEOF
|
|||
# Create sync script for staging dirs
|
||||
cat > /home/cmc/sync_prod_to_staging.sh <<'EOF'
|
||||
#!/bin/bash
|
||||
|
||||
echo "Syncing PDF files..."
|
||||
rsync -a --delete --omit-dir-times --no-perms /mnt/vault/pdf/ /home/cmc/cmc-sales-staging/app/webroot/pdf/
|
||||
echo "Syncing attachments files..."
|
||||
rsync -a --delete --omit-dir-times --no-perms /mnt/vault/attachments_files/ /home/cmc/cmc-sales-staging/app/webroot/attachments_files/
|
||||
echo "Syncing emails..."
|
||||
rsync -a --delete --omit-dir-times --no-perms /mnt/vault/emails/ /home/cmc/cmc-sales-staging/vault/emails/
|
||||
echo "Syncing vaultmsgs..."
|
||||
rsync -a --delete --omit-dir-times --no-perms /mnt/vault/vaultmsgs/ /home/cmc/cmc-sales-staging/vault/vaultmsgs/
|
||||
echo "Sync complete."
|
||||
EOF
|
||||
chmod +x /home/cmc/sync_prod_to_staging.sh
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue