Enabling rclone for db backup, changing to master branch for prod deploy, archiving migration scripts, adding backups/ to gitignore

This commit is contained in:
Finley Ghosh 2025-11-23 12:08:10 +11:00
parent 5646851ae3
commit 678e9be2b2
5 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -13,3 +13,4 @@ app/vaultmsgs/*
app/cake_eclipse_helper.php app/cake_eclipse_helper.php
app/webroot/pdf/* app/webroot/pdf/*
app/webroot/attachments_files/* app/webroot/attachments_files/*
backups/*

View file

@ -18,7 +18,7 @@ echo "Starting production deployment for cmc-sales..."
echo "Setting variables..." echo "Setting variables..."
SERVER="cmc" SERVER="cmc"
REPO="git@code.springupsoftware.com:cmc/cmc-sales.git" REPO="git@code.springupsoftware.com:cmc/cmc-sales.git"
BRANCH="prod" BRANCH="master"
PROD_DIR="cmc-sales-prod" PROD_DIR="cmc-sales-prod"
echo "Connecting to server $SERVER via SSH..." echo "Connecting to server $SERVER via SSH..."

View file

@ -12,5 +12,5 @@ else
exit 1 exit 1
fi fi
# rclone copy "$FILENAME" gdrivebackups:database/ rclone copy "$FILENAME" gdrivebackups:database/
# rclone sync /home/cmc/cmc-sales/app/webroot/pdf gdrivebackups:pdf/ # rclone sync /home/cmc/cmc-sales/app/webroot/pdf gdrivebackups:pdf/