Neue Datei hochladen
This commit is contained in:
parent
5d76c49853
commit
6405bf424d
15
nc-db-backup.sh
Normal file
15
nc-db-backup.sh
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user