Skip to content

Commit

Permalink
build: backup should only start the mysql container
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveagent57 committed Feb 23, 2024
1 parent 214aa1e commit 42ef701
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,12 @@ dev.destroy: dev.down # Kills containers and destroys volumes. If you get an err
dev.stop: # Stops containers so they can be restarted
docker-compose stop

dev.backup: dev.up
dev.backup:
docker-compose up -d mysql
docker run --rm --volumes-from enterprise.catalog.mysql -v $$(pwd)/.dev/backups:/backup debian:jessie tar zcvf /backup/mysql.tar.gz /var/lib/mysql

dev.restore: dev.up
dev.restore:
dev-compose up -d mysql
docker run --rm --volumes-from enterprise.catalog.mysql -v $$(pwd)/.dev/backups:/backup debian:jessie tar zxvf /backup/mysql.tar.gz

mysql-client: # Opens mysql client in the mysql container shell
Expand Down

0 comments on commit 42ef701

Please sign in to comment.