Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
PrinceOfAbyss Posted July 26, 2012 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.