I do know RavenNuke removed that option but I suggest to put it back again based on this example. I worked on this one and it worked properly with the last version.
Code:
<?php
if (!defined('ADMIN_FILE')) { die ("Access Denied"); }
global $prefix, $db, $admin_file;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {
switch($op) {
case "backup":
@set_time_limit(600);
$crlf="\n";
switch($lang)
{
case french :
// French Text
$strNoTablesFound = "Aucune table n'a été trouvée dans cette base.";
$strHost = "Serveur";
$strDatabase = "Base de données";
$strTableStructure = "Structure de la table";
$strDumpingData = "Contenu de la table";
$strError = "Erreur";
$strSQLQuery = "requête SQL";
$strMySQLSaid = "MySQL a répondu:";
$strBack = "Retour";
$strFileName = "Sauvegarde BD";
$strName = "Sauvegarde de la base de données";
$strDone = "effectuée le";
$strat = "à";
$strby = "par";
$date_jour = date ("d-m-Y");
break;
default :
// English Text
$strNoTablesFound = "No tables found in database.";
$strHost = "Host";
$strDatabase = "Database ";
$strTableStructure = "Table structure for table";
$strDumpingData = "Dumping data for table";
$strError = "Error";
$strSQLQuery = "SQL-query";
$strMySQLSaid = "MySQL said: ";
$strBack = "Back";
$strFileName = "Save Database";
$strName = "Database saved";
$strDone = "On";
$strat = "at";
$strby = "by";
$date_jour = date ("m-d-Y");
break;
}
global $dbhost, $dbuname, $dbpass, $dbname;
mysql_pconnect($dbhost, $dbuname, $dbpass);
@mysql_select_db("$dbname") or die ("Unable to select database");
Yeah! I know what you mean but I dont want to get rid of that option. It could be very easy and if we take care of that file it could be protected and secure.
Joined: Aug 30, 2005 Posts: 3186 Location: near Albany NY
Posted:
Fri Jan 15, 2010 4:09 pm
I had a hand in disabling it. There is an explanation of the reasoning built right into the ACP where the backup functions used to be. Basically, there is no reliable way to build a backup into PHP code considering the range of servers and capabilities people are running Ravennuke on. And there is just no way that we can duplicate MYSQL dump facilities as well as dump capabilities that are built into programs such as Cpanel.
Plus to me at least it is dangerous and a bad practice to offer a capability that we know won't work in many cases. A new admin could come in and say, "Oh I've got a backup right in RN" and rely on it and when the chips are down their system is screwed up cause it doesn't work.
Even with Cpanel backup capabilities (or similar ones on other hosts) I'd bet that the vast majority of RN systems could not be fully restored in the event of a catastrophic crash. Do you know exactly when the last dump for your system was run? Are the program files and MYSQL databases necessarily in synch? What about updates that took place since the last dump? Do you know exactly how you'd go about restoring the files ... hint if you don't have Bigdump or the equivalent all set up you ain't got a chance. Have you tested your procedures? Has anything major changed since you ran your tests?
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum