Webmaster Forumu - Webmaster Zone

Geri git   Webmaster Forumu - Webmaster Zone > Webmaster Zone > Hazır Sistemler > Wordpress

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)  
Alt 16-03-2007
SNaRe - ait Kullanıcı Resmi (Avatar)
SNaRe SNaRe isimli üyemiz çevrimdışıdır. (Offline)
Webmaster
 
Üyelik tarihi: Jan 2007
Yaş: 22
Mesajlar: 378
iTrader: (0)
Tecrübe Puanı: 48
SNaRe has a spectacular aura aboutSNaRe has a spectacular aura aboutSNaRe has a spectacular aura aboutSNaRe has a spectacular aura about
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!"
__________________
BEN MEVLANA DEĞİLİM ADAM OL ÖYLE GEL
Alıntı ile Cevapla
  #2 (permalink)  
Alt 16-03-2007
2yNeT - ait Kullanıcı Resmi (Avatar)
2yNeT 2yNeT isimli üyemiz çevrimdışıdır. (Offline)
Webmaster
 
Üyelik tarihi: Jan 2007
Yaş: 21
Mesajlar: 204
iTrader: (0)
Tecrübe Puanı: 42
2yNeT Helal emin adımlarla ilerliyorsun2yNeT Helal emin adımlarla ilerliyorsun
Standart

bi denemek lsm eğer olursa dualarımla cennet e gidersin inş.
__________________
e2ed.com web directory
Alıntı ile Cevapla
  #3 (permalink)  
Alt 21-10-2007
LuGeLaS - ait Kullanıcı Resmi (Avatar)
LuGeLaS LuGeLaS isimli üyemiz çevrimdışıdır. (Offline)
Webmaster
 
Üyelik tarihi: Jan 2007
Nerden: Aydın
Yaş: 28
Mesajlar: 56
iTrader: (4)
Tecrübe Puanı: 38
LuGeLaS üyemiz henüz acemi
LuGeLaS - MSN üzeri Mesaj gönder
Standart Cevap: 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

rss lerden çekerekmi güncelliyor
__________________
Tek Geldim Tek Giderim
Alıntı ile Cevapla
  #4 (permalink)  
Alt 26-11-2007
Sercan - ait Kullanıcı Resmi (Avatar)
Sercan Sercan isimli üyemiz çevrimdışıdır. (Offline)
Webmaster
 
Üyelik tarihi: Mar 2007
Yaş: 16
Mesajlar: 166
iTrader: (0)
Tecrübe Puanı: 35
Sercan üyemiz henüz acemi
Standart Cevap: 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

wordpressin lateswordpress.zip öyle birşeydi oradaki wordpressi çekiyordu türkçe açıklaması vardı wordpress-tr de.
__________________
Kurtlar Vadisi Pusu
Alıntı ile Cevapla
  #5 (permalink)  
Alt 26-11-2007
SNaRe - ait Kullanıcı Resmi (Avatar)
SNaRe SNaRe isimli üyemiz çevrimdışıdır. (Offline)
Webmaster
 
Üyelik tarihi: Jan 2007
Yaş: 22
Mesajlar: 378
iTrader: (0)
Tecrübe Puanı: 48
SNaRe has a spectacular aura aboutSNaRe has a spectacular aura aboutSNaRe has a spectacular aura aboutSNaRe has a spectacular aura about
Standart Cevap: 1'den Fazla Wordpress Sitesi Olanlarlar İçin Kolay Güncelleme

Bu direk linux üzerinden dhaa pro bir script. Konuyu 8 ay önce açmışım. Şu ana kadar deneyen olmadımı
__________________
BEN MEVLANA DEĞİLİM ADAM OL ÖYLE GEL
Alıntı ile Cevapla
Cevapla



Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil

Yetkileriniz
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 Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Wordpress İçin Eklenti Arıyorum? 2yNeT Script / Veritabanı ( Database ) 0 30-08-2007 09:26
Dreamweaver İçin Wordpress Eklentisi G.tr Wordpress 3 04-05-2007 20:57
Wordpress İçin En İyi Başlık Sistemi Alone Wordpress 7 08-01-2007 17:33


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 02:39 .




Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
Zone Org | 2006-2008

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 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175