+ Konu Cevaplama Paneli
Gösterilen sonuçlar: 1 ile 6 ve 6

Konu: 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

  1. #1
    Webmaster
    Puanları
    SNaRe - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    04/01/2007
    Yaş
    24
    Mesajlar
    377
    Tecrübe Puanı
    93

    Standart 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

    Uzun zamandır böyle bir script arıyordum. Bir eklenti ararken karşıma çıktı. Scripti atıyorsunuz ve kendisi herşeyi otomatik olarak wordpress i güncelleyor .
    Scripti denemedim. Çalışacağı konusunda veya sorun çıkarmayacağı konusunda garanti vermiyorum. Database yedeğinizi alıp deneyebilirsiniz.
    Orjinal adres : Aaron Toponce » Blog Archive » Wordpress Upgrade Script
    Kod
    Kod:
    #!/bin/bash
    
    # This program upgrades your existing Wordpress installations that you are running on your server.
    #
    # You need to make the necessary adjustments to this script as needed for your situation.
    #
    # Make this script executable: 'chmod 777 wp_upgrade.sh'
    # Run the script: './wp_upgrade.sh'
    #
    # Author: Aaron Toponce
    # License: GPL v2
    # Version: 0.1.1
    
    # =================== Start of Script =================== #
    
    # Provide the necessary directories to what Wordpress installations need to be backed up space delimited
    # Change as necessary and uncomment
    # For example, if you had 3 sites in /var/www/site1, /var/www/site2 and /var/www/site3
    # then it would look like below (do not add the trailing slash):
    # directories=(/var/www/site1 /var/www/site2 /var/www/site3)
    number=${#directories[@]}
    # Testing that all directories specified above are valid before beginning
    for (( i = 0 ; i < number ; i++ )); do
    	if [[ ! -d ${directories[$i]} ]]; then
    		echo "Directory ${$directories[$i]} does not exist."
    		return 1
    	fi
    done
     
    # First, we need to get the necessary file
    cd ~
     
    if [[ -f wordpress.tar.gz ]]; then
    	echo "wordpress.tar.gz exists.  Please take notice to this upgrade before continuing."
    	return 1
    fi
     
    wget http://wordpress.org/latest.tar.gz
     
    echo "First disable all plugins on all installations before continuing."
    echo "Press any key to continue..."
    read blah
     
    for (( i = 0 ; i < number ; i++ )); do
    	clear
    	cd ${directories[$i]}
     
    	echo "We are backing up the full directory, in case anything goes wrong. Press any key..."
    	read blah
    	cd ../
    	tar -cvvf ${directories[$i]}.tar ${directories[$i]}
    	gzip  ${directories[$i]}.tar
    	cd ${directories[$i]}
    	mv ${directories[$i]}.tar.gz .
    	
    	# Timestamp to create unique backup directories
    	back_ts=$(date +%m%d%Y%k%M%S)
    	mkdir backup_${back_ts}
    		
    	# Backing up the necessary Wordpress database
    	echo "Please provide the wordpress database name (case sensitive) for ${directories[$i]}:"
    	read wp_db
    	echo "And please provide the username to the database:"
    	read wp_user
    	mysqldump --add-drop-table -u ${wp_user} -p ${wp_db} > backup_${back_ts}/${wp_db}.sql
    		
    	# Make the necessary changes for what to backup.  This is the default as provided by Wordpress.
    	echo "Backing up the important files. Press any key..."
    	read blah
    	cp .htaccess wp-config.php backup_${back_ts}
    	cp -r wp-content wp-images wp-includes/languages backup_${back_ts}
    	
    	# Time to copy the latest wordpress that we downloaded and overwrite all files
    	echo "Getting the latest cp of wordpress. Press any key..."
    	read blah
    	cp ~/latest.tar.gz ./wordpress.tar.gz
    	tar -zxvf wordpress.tar.gz
     
    	# Overwrite all files
    	echo "Overwriting all old Wordpress files with the new. Press any key..."
    	read blah
    	cd wordpress
    	cp -rf * ../
     
    	# Copy the files that we backed up back
    	echo "Coping the important backed up files back in. Press any key..."
    	read blah
    	cd ../backup_${back_ts}
    	cp -rf * ../
     
    	echo "Point your browser to the necessary site and run the upgrade script."
    	echo "EG: http://example.com/wp-admin/upgrade.php"
    	echo "Update your permalinks and .htaccess."
    	echo "Install updated plugins and themes"
    	echo "Reactivate plugins"
    	echo "Press any key to continue..."
    	read blah
    done
     
    clear
    echo "Congratulations! You have successfully upgraded your Wordpress."
    echo "Please review that your browser resolves your site."
    echo "Enjoy!"
    
    [B]BEN [COLOR="Red"]MEVLANA[/COLOR] DEĞİLİM [COLOR="Red"]ADAM[/COLOR] OL ÖYLE GEL[/B]
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
    Alıntı ile Cevapla Alıntı ile Cevapla
    Facebook'ta Paylaş

  2. #2
    Webmaster
    Puanları
    2yNeT - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    14/01/2007
    Yaş
    23
    Mesajlar
    204
    Tecrübe Puanı
    91

    Standart

    bi denemek lsm eğer olursa dualarımla cennet e gidersin inş.
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
    Alıntı ile Cevapla Alıntı ile Cevapla
    Facebook'ta Paylaş

  3. #3
    Webmaster
    Puanları
    LuGeLaS - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    07/01/2007
    Bulunduğu yer
    Aydın
    Yaş
    30
    Mesajlar
    56
    Tecrübe Puanı
    0

    Standart Cevap: 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

    rss lerden &#231;ekerekmi g&#252;ncelliyor
    Tek Geldim Tek Giderim
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
    Alıntı ile Cevapla Alıntı ile Cevapla
    Facebook'ta Paylaş

  4. #4
    Webmaster
    Puanları
    Sercan - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    07/03/2007
    Yaş
    18
    Mesajlar
    168
    Tecrübe Puanı
    0

    Standart Cevap: 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

    wordpressin lateswordpress.zip &#246;yle birşeydi oradaki wordpressi &#231;ekiyordu t&#252;rk&#231;e a&#231;ıklaması vardı wordpress-tr de.
    [URL="http://www.gercekvadi.org"]Kurtlar Vadisi Pusu[/URL]
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
    Alıntı ile Cevapla Alıntı ile Cevapla
    Facebook'ta Paylaş

  5. #5
    Webmaster
    Puanları
    SNaRe - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    04/01/2007
    Yaş
    24
    Mesajlar
    377
    Tecrübe Puanı
    93

    Standart Cevap: 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

    Bu direk linux &#252;zerinden dhaa pro bir script. Konuyu 8 ay &#246;nce a&#231;mışım. Şu ana kadar deneyen olmadımı
    [B]BEN [COLOR="Red"]MEVLANA[/COLOR] DEĞİLİM [COLOR="Red"]ADAM[/COLOR] OL ÖYLE GEL[/B]
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
    Alıntı ile Cevapla Alıntı ile Cevapla
    Facebook'ta Paylaş

  6. #6
    Webmaster
    Puanları
    06dejavu - ait Kullanıcı Resmi (Avatar)
    Üyelik tarihi
    29/11/2008
    Bulunduğu yer
    Ankara / Sincan
    Yaş
    26
    Mesajlar
    117
    Tecrübe Puanı
    44

    Standart Cevap: 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

    peki nereye nasıl atıp ta çalıştırıcaz tam olarak bi açıklama yapabilirmisiniz lütfen
    | KURULUMHOSTİNG| İnternet ve Bilişim Hizmetleri | satis@kurulumhosting.com
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
    Alıntı ile Cevapla Alıntı ile Cevapla
    Facebook'ta Paylaş

+ Konu Cevaplama Paneli

Konu Bilgileri

Users Browsing this Thread

Şu an 1 kullanıcı var. (0 üye ve 1 konuk)

     

Benzer Konular

  1. Wordpress İçin Eklenti Arıyorum?
    By 2yNeT in forum Script / Veritabanı ( Database )
    Cevaplar: 0
    Son Mesaj: 30-08-2007, 10:26:20
  2. Dreamweaver İçin Wordpress Eklentisi
    By G.tr in forum Wordpress
    Cevaplar: 3
    Son Mesaj: 04-05-2007, 21:57:49
  3. Wordpress İçin En İyi Başlık Sistemi
    By Alone in forum Wordpress
    Cevaplar: 7
    Son Mesaj: 08-01-2007, 17:33:22

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajınızı Değiştirme Yetkiniz Yok

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143