• 26-05-2006, 15:04:15
    #1
    Misafir
    Merhaba altta benzer bir konu var ama benim sorunum biraz daha farklı


    Eski server ım güncelleme veya herhangi bir sebepten çöktü.
    Bu yüzden makineye yeni hardsik bağlanıp tekrar işletim sistemi kuruldu.
    Eski harddiskte sürücüye slave olarak dahil edildi
    /old/1 şeklinde.

    Şimdi bu harddiskteki hesapları ayarları ve mysql yenisine taşımam gerekiyor.
    Ne önerirsiniz nasıl yapılmalı.Uzun yada kısa yolu nedir ?
  • 26-05-2006, 15:53:57
    #2
    Üyeliği durduruldu
    Alttaki konuyla aynı şekilde taşırsın bu sefer wget felan çekmezsinde cp ( copy ) ile dosyaları hostların yeni dizinlerine taşırsın öyle aktarırsın...
  • 26-05-2006, 16:19:19
    #3
    Misafir
    KaaN adlı üyeden alıntı:
    Alttaki konuyla aynı şekilde taşırsın bu sefer wget felan çekmezsinde cp ( copy ) ile dosyaları hostların yeni dizinlerine taşırsın öyle aktarırsın...
    peki sql için ?
  • 26-05-2006, 16:30:43
    #4
    Üyeliği durduruldu
    Eski harddiskinde sql yolundan sqlları alabilirsin ( var/lib/mysql plesk için, cpanel için bakmadım oda aynı olabilir ) ancak orada .sql olarak göremezsin tabloları görebilirsin onları nasıl kısayoldan tek bir parça halinde sql a çevireceğin hakkında bir fikrim yok...
  • 26-05-2006, 16:58:56
    #5
    Misafir
    zaten site değilde sql taşımak problem bu arada cpanel kullanıyorum.
    Sanırsam adamlara saati 75$ bayılmak zorunda kalıcam
  • 26-05-2006, 17:04:09
    #6
    Üyeliği durduruldu
    Bekle bi akşam olsun bilen arkadaşlar çıkacaktır...
  • 26-05-2006, 17:05:14
    #7
    Üyeliği durduruldu
    http://www.google.com/search?hl=en&q...database&meta=
  • 26-05-2006, 18:08:48
    #8
    Misafir
    Alıntı
    So your cpanel server got hacked or crashed? Lots of that going around these days. And if you didn't have cpanel backups of all your sites, then your only option is to copy from the old drive... heres the basics..

    commands to be executed from root shell preceded by #

    Order restore from rackshack.

    In trouble ticket specify to leave the old drive in

    Once the restore is done, SSH in to box..

    mount the old / partition as old (on RS boxes almost always /dev/hdb3)

    # mount /dev/hdb3 /old

    run chkrootkit to make sure you don't copy back infected files.. http://www.chkrootkit.org/

    now we can start copying back data from the old drive

    # rsync -vrplogDtH /old/usr/local/apache/conf /usr/local/apache
    # rsync -vrplogDtH /old/var/named /var
    # rsync -vrplogDtH /old/home/* /home
    # rsync -vrplogDtH /old/usr/local/cpanel /usr/local
    # rsync -vrplogDtH /old/var/lib/mysql /var/lib
    # rsync -vrplogDtH /old/var/cpanel /var
    # rsync -vrplogDtH /old/usr/share/ssl /usr/share
    # rsync -vrplogDtH /old/var/ssl /var
    # rsync -vrplogDtH /old/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty
    # rsync -vrplogDtH /old/var/log/bandwidth /var/log
    # rsync -vrplogDtH /old/usr/local/frontpage /usr/local
    # rsync -vrplogDtH /old/var/spool/cron /var/spool
    # rsync -vrplogDtH /old/root/.my.cnf /root
    # rsync -vrplogDtH /old/etc/httpd/conf/httpd.conf /etc/httpd/conf
    # rsync -vrplogDtH /old/etc/sysconfig/network /etc/sysconfig

    then change to the old etc, and execute all on one line ...

    # cd /old/etc

    # rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts /etc

    well I hope I got everything... after you move all that stuff you will find yourself fixing up little things here and there....

    I recomend updating cpanel afterwards .. /scripts/upcp .. /scripts/updatenow .. /scripts/sysup .. /scripts/fixeverything

    update exim .. /scripts/exim4

    Once everything works.. make sure you don't get 0wn3d again...
    update apache .. /scripts/easyapache
    update kernel to latest (plenty of howto's on these forums)
    mount /tmp as noexec (and symlink /var/tmp to /tmp)
    Böyle bir konu buldum %100 garantili değilmiş.Ama denildiğine göre herşeyi ayarlarıyla birlikte yeni makineye taşıyor
    http://forum.ev1servers.net/showthre...estore+crashed
  • 26-05-2006, 18:12:13
    #9
    Üyeliği durduruldu
    vallahi hiç uğraşma Profesyönel Yardım al derim 50 YTL bu işi yapan firmalar var kendimde yaptırdım www.fdcturkey.com msn adresleri sitede yazıyor eklersen görüş yaparlar.