Created
May 26, 2020 16:54
-
-
Save lifeblood/2bb857d79224282ab2aadb561f489e13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
time=$(date "+%Y-%m-%d %H:%M:%S") | |
cd /home/deploy/laradock | |
docker-compose exec workspace mysqldump -h mysql -u root --password=root default | gzip > /home/backup/db-$(date +\%F-\%T).sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment