Export Database to file

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Ralle
Forum Commoner
Posts: 38
Joined: Mon Oct 17, 2005 5:05 am

Export Database to file

Post by Ralle »

Hello!
I searched google for this but didn't find what I need.
I need a simple php script that exports a database to a file named 'prefix' . date YYYYMMDD
the file should be created in a folder on the server.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Here is a little bash script that i use to make a database dump and backup my files. The result is a backup-2005-10-29.tgz archive...

http://timvw.madoka.be/programming/bash/backup.txt.
Ralle
Forum Commoner
Posts: 38
Joined: Mon Oct 17, 2005 5:05 am

Post by Ralle »

what script is this?? how do I run it???
Post Reply