• 22-07-2006, 12:58:00
    #1
    Üyeliği durduruldu
    admin panelden alınan yedekler hep sıkıtı vermiştir ama bu hack sayesinde artık ziplenmiş şekilde bile yedek alabileceksiniz...
    anlatıma geçelim
    admin/template.php dosyasını açın ve bulun
    cpfooter();
    ?> 
  • 22-07-2006, 12:59:23
    #2
    Üyeliği durduruldu
    üstüne bu kodları ekleyin
    [code]//######### MySQL Database Backup/Restore Hack Ver. 1.0 ###########
    //######### by Birdie501 ###########

    //######### Variable, please modify ###########
    $db_host="Host-name";
    $db_username="mysql-username";
    $db_passwort="mysql-passwort";
    $db_name="database-name";
    $pfad="root/your folder to your forum/admin/backup"; // root without / at the end
    // If you don't know the root, just upload root.php on your server and call it!
    $download_url="http://"; // http://... with / at the end
    $dateiname=date('U'); // not to change!. Unique filename will be used

    //######### please do not modify lines below ###########

    // ###################### Start Backup #######################
    if ($action=="backup") {
    doformheader("template","dobackup");
    makehiddencode("templateid",$templateid);
    makehiddencode("group",$group);
    maketableheader("Confirm backup");
    makedescription("Are you sure you want to backup your mysql database?");
    doformfooter("Yes","",2,"No");
    }
    // ###################### Start Dobackup #######################
    if ($HTTP_POST_VARS['action']=="dobackup") {
    $programm="mysqldump";
    $parameter=" -l --add-drop-table -h ".$db_host." -u".$db_username." -p".$db_passwort." ".$db_name." 2>".$pfad."/error.txt >".$pfad."/".$dateiname.".sql";
    echo(
    "<b>Start MySQL Dump:</b> \n");
    exec($programm . " " . $parameter, $lines, $result);
    echo(
    "done!<br>\n");
    echo(
    "<b>compress file:</b> \n");
    exec("gzip -c ".$pfad."/".$dateiname.".sql > ".$pfad."/".$dateiname.".sql.gz", $lines, $result);
    echo(
    "done!<br>\n");
    echo(
    "<b>delete not compressed file:</b> \n");
    exec("rm ".$pfad."/".$dateiname.".sql", $lines, $result);
    echo(
    "done! \n");
    echo(
    "<b><br>Before you can restore this file, you have to rename to backp.sql.gz:</b> \n");
    echo(
    "<p>\n");
    echo(
    "<a href=\"".$download_url.$dateiname.".sql.gz\" target=\"_blank\">Download File</a>");
    }

    // ###################### Start Restore #######################
    if ($action=="backup") {
    doformheader("template","dorestore");
    makehiddencode("templateid",$templateid);
    makehiddencode("group",$group);
    maketableheader("Confirm restore");
    makedescription("Are you sure you want to restore your mysql database? <font color='red'>Attention: All datas will be overwritten!</font>");
    doformfooter("Yes","",2,"No");
    }

  • 22-07-2006, 12:59:59
    #3
    Üyeliği durduruldu
    // ###################### Start Dorestore #######################
    if ($HTTP_POST_VARS['action']=="dorestore") {
    if(
    file_exists($pfad."/backup.sql.gz")==1):
    $programm="mysql";
    $parameter="--host=".$db_host." --user=".$db_username." --password=".$db_passwort." --database=".$db_name." <".$pfad."/backup.sql";
    echo(
    "<b>decompress backup:</b> \n");
    exec("cd ".$pfad, $lines, $result);
    exec("gzip -d ".$pfad."/backup.sql.gz", $lines, $result);
    echo(
    "done!<br>\n");
    echo(
    "<b>restore file to database:</b> \n");
    exec($programm." ".$parameter, $lines, $result);
    echo(
    "done!<br>\n");
    else:
    echo(
    "<b>File <font color='red'>".$pfad."/backup.sql.gz</font> not found!</b> \n");
    endif;
    }
    //######### End of MySQL Database Backup/Restore Hack Ver. 1.0 ###########
    //######### by Birdie501 ###########
    [/code]admin/index.php dosyasını açın ve bu kodları bulun
    // *************************************************
       makenavoption("Backup/Restore","template.php?&action=backup","<br>");
       makenavselect("My Sql DB Backup/Restore","<hr>");
       // *************************************************
  • 23-07-2006, 22:53:01
    #4
    saol da konuyu 5'e 6'ya bölseydin

    daha bi anlaşılır olurdu

    çok sıkıştırmışsın
  • 23-07-2006, 23:13:37
    #5
    Kimlik doğrulama veya yönetimden onay bekliyor.
    ssh'dan şaşmam
  • 24-07-2006, 07:13:43
    #6
    Üyeliği durduruldu
    Bakın her seferinde söylüyorum. Eğer alıntı yapıyor iseniz lütfen yerini ve kaynağını belirtin.
  • 24-07-2006, 10:36:06
    #7
    30X sürümü için değil demi bu yani 35X içinmi ?
  • 24-07-2006, 12:12:08
    #8
    Üyeliği durduruldu
    vallahi bu not defrerinde vbulletin arşivinde duruyordu böyle 200 tane konu var arşivimde herhangi siteden almadım .bilgisayarımda kayıtlı tabi onlarıda ordan burdan topladım
  • 24-07-2006, 13:19:31
    #9
    Üyeliği durduruldu
    ftpnizde yeni bir klasör oluşturun ve chmodunu 777 yapın
    sonrasında admincp>>bakım>>database yedekleme kısmından tüm tabloları seçip Serverınızda Yedeğin Kaydedileceği Yer bölümünden klasör ismini yazarak kaydet butonuna tıklayınız.

    örneğin; ./sqllerim/forumbackup-24-07-2006-afd8a.sql

    tüm sql yedeğinizi ftpnizde yedek klasörü içerisinden alabilirsiniz

    bence admincpden en sağlam yedek alma yolu bu....