MySQL Forums
Forum List  »  Backup

Re: Any suggestion in Backup script.
Posted by: Jeff Diluzio
Date: February 01, 2005 08:47AM

I posted this a couple of weeks ago in this forum.

This is the script I use:

#!/bin/bash

date=$(date +%F)
time=$(date +%T)

## dump mysql database ##
mysqldump -l --add-drop-table --user=username --password=secret dbname > /data/Mysql_Backup${date}-${time}.sql

Thanks,
Jeff Diluzio

Options: ReplyQuote


Subject
Views
Written By
Posted
4678
January 27, 2005 12:45AM
3163
Sam
January 27, 2005 02:00AM
3292
January 28, 2005 11:09AM
Re: Any suggestion in Backup script.
3276
February 01, 2005 08:47AM
3265
February 01, 2005 04:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.