- database backup script

3-00
Dries Buytaert 2000-12-19 09:08:39 +00:00
parent c4286e8009
commit 5976e2f85e
1 changed files with 6 additions and 4 deletions

View File

@ -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