Skip to content
Snippets Groups Projects
Commit 4a754a5b authored by David Beniamine's avatar David Beniamine
Browse files

backup.sh

parent f2bace20
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
echo "Backing up nextcloud DB"
DIR=$(dirname $0)
cd $DIR
out="backups/mysqldump_$(date +%Y%m%d_%H%M).sql.gz"
. .env
docker-compose exec db mysqldump --all-databases -u root -p$MYSQL_ROOT_PASSWORD | gzip > $out
ls -lh $out
echo "Done"
cd -
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment