bi denemek lsm eğer olursa dualarımla cennet e gidersin inş.![]()
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]
bi denemek lsm eğer olursa dualarımla cennet e gidersin inş.![]()
rss lerden çekerekmi güncelliyor
Tek Geldim Tek Giderim
wordpressin lateswordpress.zip öyle birşeydi oradaki wordpressi çekiyordu türkçe açıklaması vardı wordpress-tr de.
[URL="http://www.gercekvadi.org"]Kurtlar Vadisi Pusu[/URL]
Bu direk linux üzerinden dhaa pro bir script. Konuyu 8 ay önce aç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]
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
Şu an 1 kullanıcı var. (0 üye ve 1 konuk)