Up
This commit is contained in:
parent
ab14f323f7
commit
f059fb76f9
1 changed files with 5 additions and 4 deletions
|
@ -2,19 +2,20 @@
|
|||
|
||||
set -x
|
||||
|
||||
ERP_HOST="example.com"
|
||||
DATE="$(date --iso-8601)"
|
||||
DISPLAY=:0
|
||||
|
||||
BACKUP_DIR="$HOME/Documents/Backup"
|
||||
|
||||
echo "Exporting database dump"
|
||||
/usr/bin/setsid ssh apps.glenux.net \
|
||||
/usr/bin/setsid ssh "$ERP_HOST" \
|
||||
dokku mariadb:export erp \
|
||||
> "$BACKUP_DIR/net.glenux.apps.erp.$DATE.sql"
|
||||
> "$BACKUP_DIR/$ERP_HOST.$DATE.sql"
|
||||
|
||||
echo "Exporting files"
|
||||
/usr/bin/setsid ssh apps.glenux.net \
|
||||
/usr/bin/setsid ssh "$ERP_HOST" \
|
||||
docker exec erp.web.1 \
|
||||
"bash -c 'cd /var/www/html/documents ; tar czf - .'" \
|
||||
> "$BACKUP_DIR/net.glenux.apps.erp.$DATE.tar.gz"
|
||||
> "$BACKUP_DIR/$ERP_HOST.$DATE.tar.gz"
|
||||
|
Loading…
Reference in a new issue