Skip to content

Commit

Permalink
simplified folder structure for db backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Nurkkala committed Dec 11, 2015
1 parent ab9270f commit 3333811
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/rsync-from-production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ MONTH=$(date '+%B')
NEW_DIR=backups/$YEAR/$MONTH

RSYNC='rsync --verbose --archive --progress --rsh=ssh'
#THI_PROD='thi-production:/home/dreamsuite/dreamsuite'

THI_PROD='thi-production:/home/dreamsuite/tinyhands'

NOW=$(date '+%F-%H-%M')

$DIRS $NEW_DIR

$RSYNC $THI_PROD/db.sqlite3 backups/$NEW_DIR/db-$NOW.sqlite3
$RSYNC $THI_PROD/db.sqlite3 backups/db-$NOW.sqlite3
$RSYNC $THI_PROD/media .

0 comments on commit 3333811

Please sign in to comment.