Skip to content

Instantly share code, notes, and snippets.

View radityopw's full-sized avatar

radityo radityopw

View GitHub Profile
@joshsmith
joshsmith / mysqlbackup.php
Created October 30, 2010 22:16
A PHP script for emailing and saving MySQL backups with mysqldump.
<?
// Creates a mysqldump and emails the resulting dump file
// Edit the following values
$dbhost = "DBHOST"; // usually localhost
$dbuser = "DBUSER";
$dbpass = "DBPASS";
$dbname = "DBNAME";
$sendTo = "paranoid.programmer@email.com";
$sendToName = "SEND_TO_EMAIL";