Open main menu

Changes

20 bytes removed ,  02:55, 12 July 2018
no edit summary
sudo su -
/home/greg/bin/backup.db.sh wordpress
 
 
# Ctrl+D logout
# set some variables
docroot=/var/www/html
cp $config ~/civicrm.settings.php.bak
backup=/tmp/html.backup
mkdir $backup && sudo chown www-data:www-data $backup
sudo -u www-data cp -ar /var/www/html $backup
package=https://download.civicrm.org/civicrm-5.3.0-wordpress.zip
wget $package
sudo rm -rf $pluginroot/civicrm && sudo -u www-data unzip $package -d $pluginrootrm -r rf $templates/
# upgrade the database by visiting the URL in your browser
/admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1
# test and then cleanup or revert
rm $(basename $package)
rm ~/civicrm.settings.php.bak
sudo rm -rf $backup
</source>
4,558

edits