feat: database backup script

This commit is contained in:
Ahmed Bouhuolia
2024-04-28 18:04:56 +02:00
parent b7214044bb
commit 341bcbea7d
2 changed files with 31 additions and 0 deletions

7
scripts/store-backup.sh Normal file
View File

@@ -0,0 +1,7 @@
# Store the backup.
docker run --rm \
--mount source=bigcapital_dev_mysql,target=/data/db \
-v $(pwd):/backup \
busybox \
tar -xzvf /backup/bigcapital-mariadb-2024-04-24-15-14-40.tar.gz -C /