Site, Server Genel » vBulletin Destek

Veritabanı yedeklemek (dB backup)

http://forum.whmdestek.com/

Go Back   WHM/cPanel Support Platform » Türkçe » Site, Sunucu Sorunlarınız ve Çözümleri » Site, Server Genel » vBulletin Destek
 


Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 26.11.07, 12:42
tespara's Avatar
Gamzede
 
Join Date: Jun 2007
Location: dersaadet
Posts: 67
Rep Power: 42
tespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond reputetespara has a reputation beyond repute
Send a message via MSN to tespara Send a message via Skype™ to tespara
Veritabanı yedeklemek (dB backup)

vBulletin forumun veritabanın yedeklemek için 4 yönetmimiz var . Burada sadece 2 tanesi anlatılacaktır

A- Forumun kendi scripti ile yedekelmek :

A/1- Veritabanını Yedeğini Bilgisayara indirme :
AdminCP > Maintenance > Database Backup alanına girin Database tables to include in backup kısmındaki forum ile ilgili tüm tabloları seçin (All Yes tuşuna basarak hepsini seçebilrsiniz)

- Go tuşuna basarak *.sql uzantılı veritabanı yedeğini kendi bilgisayarınıza indirin
- Backup database to a file on the server kısmından veritabanı yedeğini sunucya indirebilirsiniz.
Code:
Path and name of file to save backup to: = ./tespara.sql 
./ işareti forumun kurulu olduğu dizin demektir

http://img518.imageshack.us/img518/7245/yedek1hs7.gif
http://img184.imageshack.us/img184/8534/yedek2yj0.gif
http://img181.imageshack.us/img181/8776/yedek3dc4.gif


C- SSH/Telnet ile yedeklemek:
Bu işlem için SSH hesabınızın çalışır durumda olması gerekir

C/1-Aşağıdaki komut ile sunucuya yedek alabilirsiniz
PHP Code:
mysqldump -u root -p123   forum > /tespara.sql 
C/2-Sıkıştırarak yedek almak için :
PHP Code:
mysqldump -u root -p123 forum bzip2  > /tespara.sql 
C/3-İstediğiniz karakter setinde yedek alamak için (mesela UTF-8)
PHP Code:
mysqldump -u root -p123 --default-character-set=utf8 forum > /tespara.sql 
C/4- Eski sürümlere uyumlu yedek almak için ( Bu ,yeni sunucuya taşınırken sürüm uyuşmazlığı yaşamak için kullanılabilir. mysql uyumluluk parametreleri iki tanedir mysql323, mysql40

PHP Code:
mysqldump -u root -p123 --compatible=mysql40 forum > /tespara.sql 
C/5- -K parametresi : Tüm satırlar yerleştirildikten sonra indexler oluşturulduğu için yedeklenen dosyanın dah hızlı olmasını sağlar

PHP Code:
mysqldump -u root -p123 -K forum > /tespara.sql 
C/6- Küçük boyutlu db lerin hızlı yüklenmesi için -e parametresi
PHP Code:
mysqldump -u root -p123 -e forum > /tespara.sql 
C/7- yedek ismi sonuna otomotik olarak tarih atması için
PHP Code:
mysqldump -u root -p123 -----compatible=mysql40  forum > /divran_`date +%d%m%y`.sql 
C/8- Sıkıştırılmış bir yedek :

bZip ile yedek
PHP Code:
mysqldump -u root -p123  forum bzip2 -> /tespara.sql.bz2 
gZip ile yedek
bu sıkıştırma formatında sıkıştırma algoritması için 0-10 arası bir değer seçebilrsiniz
PHP Code:
mysqldump -u root -p123  forum gzip-> /tespara.sql.gz 
Sağlıklı bir ydekleme için örnek bir komut :

PHP Code:
mysqldump -u root -p123 -----compatible=mysql40 --default-character-set=utf8 forum > /tespara.sql 
Daha fazla detay için : MySQL AB :: MySQL 5.0 Reference Manual :: 8.13 mysqldump â�� A Database Backup Program
__________________
Çok kaygı çekme, mukadder olan olur, takdir olunan rızkın da sana gelir.[Hz Muhammed (S.A.V)]
Şiir vardır ki, hikmettir. Beyân vardır ki, büyüdür.[Hz Muhammed (S.A.V)]
Kim, bir zümreye benzemeye çalışırsa, o, onlardandır.[Hz Muhammed (S.A.V)]
Hikmetin başı, Allah korkusudur.[Hz Muhammed (S.A.V)]
Elif Lam Mim. İnsanlar "inandık" deyip kurutlacaklarınımı sanırlar [Ankebut ,1]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 27.12.07, 18:37
misc's Avatar
WHM VIP Member
 
Join Date: Nov 2007
Location: Denizli
Posts: 283
Rep Power: 22
misc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond repute
Send a message via MSN to misc
teşekkürler verdiğiniz bilgiler için.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Sign up for PayPal and start accepting credit card payments instantly.

Navigasyon
Menü