Neue Datei hochladen

This commit is contained in:
Daniel Schubert 2020-02-05 10:04:27 +00:00
parent 5d76c49853
commit 6405bf424d
1 changed files with 15 additions and 0 deletions

15
nc-db-backup.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# create db dump
host=localhost
user=xxxxxxxxxxxxxxxxxxxxxxxxx
pass="xxxxxxxxxxxxxxxxxxxxxxxxxx"
db=nextcloud
backupbd="nc-db.sql.gz"
mkdir -p /home/nc-cloner/nc-bak
cd /home/nc-cloner/nc-bak
mysqldump --opt --add-drop-table -h$host -u$user -p$pass $db | gzip > $backupbd