Jump to content


Highest Reputation Content


#2337 [Resolved] Fresco Outage - DDoS Attack Mitigated

Posted by SnakEyez on 05 May 2011 - 06:48 PM

The total downtime from this incident was 12 minutes from start to finish.


I have to admit these updates are nice. But let's be serious, I own a Playstation 3, I laugh at 12 minutes of downtime.
  • 2


#1673 New Backup Node Online! More Restoration Points

Posted by TotalZen on 07 December 2010 - 09:18 PM

Here's a php script that will perform automated backups of your database(s) and email them to you.

What I did was set up a separate Gmail account for it, and then filter all the emails/attachments to the Trash folder so the account doesn't max out. The trash can automatically deletes emails after 20 days, so the whole thing is on auto-pilot with zero maintenance.

Simply run the script nightly as a cron job...

/usr/bin/php / /home/...(your path goes here).../cron_backup.php

<?php

$datestamp = date("Y-m-d");      // Current date to append to filename of backup file in format of YYYY-MM-DD

/* CONFIGURE THE FOLLOWING SEVEN VARIABLES TO MATCH YOUR SETUP */

$dbuser = "database_user";            // Database username
$dbpwd = "database_pass";            // Database password
$dbname = "database_name";            // Database name. Use --all-databases if you have more than one
$filename= "dump_filename-$datestamp.gz";   // The name (and optionally path) of the dump file
$to = "email_address";      // Email address to send dump file to
$from = "mysql_backup@domain.com";      // Email address message will show as coming from.
$subject = "domain.com MySql Backup For: $datestamp";      // Subject of email

/* CONFIGURATION END */

$command = "mysqldump --opt --quick --skip-extended-insert -u $dbuser --password=$dbpwd $dbname | gzip > $filename";
$result = passthru($command);

$attachmentname = array_pop(explode("/", $filename));   // If a path was included, strip it out for the attachment name

$message = "Compressed database backup file $attachmentname attached.";
$mime_boundary = "<<<:" . md5(time());
$data = chunk_split(base64_encode(implode("", file($filename))));

$headers = "From: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: multipart/mixed;\r\n";
$headers .= " boundary=\"".$mime_boundary."\"\r\n";

$content = "This is a multi-part message in MIME format.\r\n\r\n";
$content.= "--".$mime_boundary."\r\n";
$content.= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
$content.= "Content-Transfer-Encoding: 7bit\r\n\r\n";
$content.= $message."\r\n";
$content.= "--".$mime_boundary."\r\n";
$content.= "Content-Disposition: attachment;\r\n";
$content.= "Content-Type: application/x-gzip; name=\"$attachmentname\"\r\n";
$content.= "Content-Transfer-Encoding: base64\r\n\r\n";
$content.= $data."\r\n";
$content.= "--" . $mime_boundary . "\r\n";

mail($to, $subject, $content, $headers,"-f $from");

unlink($filename);   // Delete the backup file from the server (optional)

?>

  • 2


#6319 Recent Network-Wide Connectivity Disruptions

Posted by MikeDVB on 11 January 2017 - 10:52 AM

didn't stumble on this thread, until i create support ticket. How do i get email notification of maintenance work in advance?

https://forums.mddho...ues-and-events/


  • 1


#6145 Network issues for some users.

Posted by Tim on 06 June 2016 - 03:05 PM

A few of you noticed connectivity issues today to our website, servers, and your website. The issue appears to be related to one of the 3rd party 'backbone' networks used to supply data to various servers and internet providers. We contacted our datacenter and as the issue was not within our network they began investigating the cause.

 

Once the problem network was identified they stopped routing traffic through it and the connection issues appear to be resolved.


  • 1


#5919 Again with the questions...

Posted by MDDRick on 04 March 2016 - 03:12 PM

Thanks for that!

 

Cheers


  • 1