PrinceOfAbyss Posted July 26, 2012 Share Posted July 26, 2012 I created a tiny PHP script which I intended to run through shell to backup my DB. What impressed me is that the script works fine running it from a browser as well. So by using it, at any time, I have within seconds a dump of my DB. <?php $command = "mysqldump -u<db_username> -p<db_password> <db_name> | gzip > backupDB_" . date( "H:i:s_d-m-Y" ) . ".sql.gz"; system( $command ); ?> :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.