Ph0eniX, i found a code from you, but I don't really get it :o
#!/bin/sh
databases="dbname"
backupdir=/export/home/sqlbackup
mysqldumpcmd=/opt/sfw/mysql/bin/mysqldump
userpassword=" --user=username --password=password"
dumpoptions="--quick --add-drop-table --add-locks --extended-insert --lock-tables"
echo "Dumping MySQL Databases"
for database in $databases
do
$mysqldumpcmd $userpassword $dumpoptions $database > ${backupdir}/${database}.sql
done
echo "Compressing Dump Files"
for database in $databases
do
rm -f ${backupdir}/${database}.sql.gz
gzip ${backupdir}/${database}.sql
done
ls -l ${backupdir}
echo "Dump Complete!"
exit
Do I put that in a script and upload it to the host?
herve, thnx for the site, but it are all shell commands... I think... I have no idea how to use them π
And euhm If I manage to save my db as a sql file, how do I upload it back to the host then?