|
#1
|
||||
|
||||
|
My suggestions is that site owners and resellers be notified in advance by e-mail when scheduled maintenance jobs, upgrades, etc. are going to be held on specific servers.
Right now the only way to know about this services is by logging in the forum and read the announcements. We can clearly see that this is impractical as well as time consuming. Almost all hosting companies (at least that I am aware of) do this and prevents a lot of complaining from users when we see our site back to a previous state after several hours of lost work. Also, it remind us to make a full backup, prevents from big changes on our sites, etc. The list of advantages can go on and I'm sure you can implement this very easily through mailing lists, so please take into account this suggestion. Keep up the good work! |
|
#2
|
|||
|
|||
|
Quote:
I sincerely hope they prove me wrong, but I'm just letting you know it's been requested here numerous times before. -jeff_S |
|
#3
|
||||
|
||||
|
I'd also like to get this kind of service !
I don't mind if I'd have to sign up for that, and I don't mind if I'd get notifications regarding all the servers.
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#4
|
||||
|
||||
|
Quote:
My prior two hosts used a calendar system to notify users of updates and changes. Quote:
|
|
#5
|
||||
|
||||
|
the only problem i have is that my user's upload pictures and update information on the mysql daily.
I dont mind about being contacted or not, I'd just like it if hostgator were sure to have a recent backup of mysite. so it could be inserted again, and will be like nothing has happend. |
|
#6
|
|||
|
|||
|
Well you should never depend on any host for your database backups - imho.
It's probably less risky with a reputable host like HG but still...bad idea. I have mine automatically backed up every night via cron using a PHP script. One copy ends up in my FTP account and the other gets emailed to a webmail account (I use gawab.com, and use a filtering rule which sends them directly to the trash can where they are auto deleted after 20 days so that I don't even have to login to clean it out at all). Zero hassles and total safety
|
|
#7
|
|||
|
|||
|
lol i am no good with cgi ,i can barely even write php. But i guess i should look into it,
thanks |
|
#8
|
||||
|
||||
|
upps forgot to login
|
|
#9
|
|||
|
|||
|
Here's the PHP script I use (It's a slightly modified / improved version of the one found here - http://www.notonebit.com/ - by scanman)
<? $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 = "user"; // Database username $dbpwd = "pass"; // Database password $dbname = "database_name"; // Database name. $filename= "$dbname-$datestamp.gz"; // The name (and optionally path) of the dump file $to = "backup_email@gawab.com"; // Email address to send dump file to (gawab.com webmail is recommended, filter to the trashcan using a rule) $from = "my_email@account.com"; // Email address message will show as coming from. $subject = "$dbname MySql Backup For: $datestamp"; // Subject of email $command = "mysqldump -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 after mailing (optional) ?> |
|
#10
|
||||
|
||||
|
Quote:
What I would like to know is if the suggestions in this forum are read by the HG staff, so that they coud be really taken into account. One last question to twisty. What (How) exactly do I have to do to implement the script in this thread. TIA |
|
#11
|
||||
|
||||
|
wow thanks for the script dude, looks like ive set it up ok, just gotta hope the cronjob ive set works.
|
|
#12
|
|||
|
|||
|
Quote:
The cron command I use is something like this... /usr/bin/php /home/account_name/path/to/script.php
|
|
#13
|
||||
|
||||
|
Quote:
Any advice on my procedure? |
|
#14
|
|||
|
|||
|
Quote:
Obviously you'll need to create a webmail account first though. All other info I posted in this thread should be enough to proceed
|
|
#15
|
||||
|
||||
|
Quote:
thanks. oh and if you cannot read the file on your computer, just go to the file that went to the ftp and your ie will encode it so you can view it properly in plain english .
|
|
#16
|
|||
|
|||
|
Quote:
Btw you can directly import .gz compressed databases as well if a backup is ever needed. |
|
#17
|
||||
|
||||
|
Quote:
Copy the the script and paste into a new file. Name the file "something.php". Edit the mentioned variables in the script as needed. Save the changes. As stated, the folder where the script will reside must be CHMOD to 777, otherwise you will not be able to open the *.gz file like it happened to me or you won't even get a file. I also CHMOD the file to 777, but I guess it's not necessary. The command in the cron job must be set like this : GET http://yourdomain.com/script-file-folder/something.php > /dev/null Thank you all. I hope this helps. |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 08:04 PM.









