Skip to content

Commit

Permalink
Variable naming improvement in backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Jun 8, 2023
1 parent 2e52cbd commit f7912e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backup/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ USERNAME=ubuntu
#USERNAME=root
SSH_REMOTE=$USERNAME@$HOSTNAME

## Mongo collection to dump
MONGO_COLLECTION=comingle
## Mongo database to dump
MONGO_DB=comingle

## Local backup directory name
BACKUP_DIR=comingle-backup
Expand Down Expand Up @@ -41,9 +41,9 @@ CLOUD_DIR="comingle-backup$datedir"

cd "`dirname "$0"`"
echo \* mongodump
ssh "$SSH_REMOTE" mongodump --db "$MONGO_COLLECTION" --gzip
ssh "$SSH_REMOTE" mongodump --db "$MONGO_DB" --gzip
echo \* rsync
rsync -e ssh -a "$SSH_REMOTE:dump/$MONGO_COLLECTION/" "$BACKUP_DIR/"
rsync -e ssh -a "$SSH_REMOTE:dump/$MONGO_DB/" "$BACKUP_DIR/"

echo \* $METHOD

Expand Down

0 comments on commit f7912e5

Please sign in to comment.