Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using mysqldump from a Perl script

Status
Not open for further replies.

MatthewP

Programmer
Jan 16, 2001
176
GB
I was hoping that I'd be able to use the mysqldump from a Perl script in order to be able to automate backing up databases, but I keep getting error messages. I'm just calling it with backticks like :

`mysqldump my_db_name > /home/virtual/rest_of_path/backup.sql -p my_password_here` || die ("Cant dump database : $!");

but I get the error message every time. Is this possible somehow, or does anyone know of any other way to automate backing up the database?

Thanks,
Matt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top