- database backup script
parent
c4286e8009
commit
5976e2f85e
|
@ -1,7 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
username="username"
|
||||
database="database"
|
||||
hostname="hostname"
|
||||
username=""
|
||||
database=""
|
||||
password=""
|
||||
hostname=""
|
||||
path=""
|
||||
|
||||
mysqldump -h $hostname -u $username -p $database > mysql-backup
|
||||
mysqldump -h $hostname -u $username -p$password $database > $path/backup-`date +"%Y%m%d"`.sql
|
||||
|
|
Loading…
Reference in New Issue