Pasang WordPress Automatic Upgrade Plugin

Jika sebelumnya saya sudah memposting tentang cara Upgrade Automatic WordPress 3.0 atau KLIK DISINI dan untuk kali ini saya akan menyediakan WordPress Automatic Upgrade Plugin dari situs resmi wordpress.org
Wordpress Automatic Upgrade Plugin memungkinkan anda untuk secara otomatis meng-upgrade instalasi wordpress dengan yang terbaru yang disediakan oleh wordpress.org dan berikut ini cara pasang WordPress Automatic Upgrade Plugin.

1. Backs up file terlebih dulu dan menyimpannya.
2. Backs up database dan terlebih dulu dan menyimpannya.
3. Download file terbaru dari http://wordpress.org/latest.zip dan membuka zip tersebut.
4. Menempatkan situs dalam modus pemeliharaan .
5. Matikan semua plugin yang aktif .
6. Upgrade wordpress file.
7. Memberikan Anda sebuah link yang akan terbuka di jendela baru untuk meng-upgrade instalasi.
8. Mengaktifkan kembali plugin anda.

WordPress Automatic Upgrade Plugin juga dapat dapat dijalankan dalam mode otomatis dimana Anda tidak perlu mengklik link apapun.

2 responses to “Pasang WordPress Automatic Upgrade Plugin

  1. gan kalo gak pake plugin gimana?? minta scriptnya bisa gak?

    • terima kasih atas request-nya bung rodes!!
      Pertama, saya harus menyebutkan bahwa script ini datang tanpa jaminan apa-apa . Gunakan dengan resiko anda sendiri. Jika database Anda gagal atau menginstal WordPress, jangan datang menangis kepada saya. Meskipun hal ini upgrade untuk instalasi saya sendiri tanpa hambatan, ini tidak berarti bahwa ia akan bekerja untuk Anda. Harap berhati-hati ketika melakukan upgrade file dan database. Jika Anda mengalami masalah, saya akan mencoba untuk memberikan dukungan yang diperlukan mungkin. Namun, saya sangat sibuk, sehingga mungkin lebih cepat bagi Anda untuk mencari tahu apa yang terjadi, dan untuk memperbaikinya sendiri. Anda akan belajar lebih baik dengan cara itu pula.
      Selanjutnya, silahkan untuk mengikuti petunjuk rincinya disini. dan kode script untuk wordpress automatic upgrade yaitu:

      #!/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.2

      # =================== 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 -O latest.tar.gz http://wordpress.org/latest.tar.gz

      echo "First disable all plugins on all installations before continuing."
      echo "Press ENTER 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 ENTER…"
      read blah
      cd ../
      tar -cvvf ${directories[$i]}.tar ${directories[$i]}
      gzip ${directories[$i]}.tar
      cd ${directories[$i]}
      mv ${directories[$i]}.tar.gz .

      # Timestamp in unix epoch format to create unique backup directories
      back_ts=$(date +%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 ENTER…"
      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 ENTER…"
      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 ENTER…"
      read blah
      cd wordpress
      cp -rf * ../

      # Copy the files that we backed up back
      echo "Coping the important backed up files back in. Press ENTER…"
      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&quot;
      echo "Update your permalinks and .htaccess."
      echo "Install updated plugins and themes"
      echo "Reactivate plugins"
      echo "Press ENTER 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!"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s