sudo /opt/redmine-2.3.1-0/mysql/bin/mysqldump -u bitnami -p bitnami_redmine > /home/erick/redmineback/2.3.1backup.sql
cp /opt/redmine-2.3.1-0/apps/redmine/htdocs/config/database.yml /home/erick/redmineback/ cp /opt/redmine-2.3.1-0/apps/redmine/conf/redmine.conf /home/erick/redmineback/ cp /opt/redmine-2.3.1-0/apps/phpmyadmin/conf/phpmyadmin.conf /home/erick/redmineback/ cp /opt/redmine-2.3.1-0/apache2/conf/httpd.conf /home/erick/redmineback/ mkdir /home/erick/redmineback/files cp /opt/redmine-2.3.1-0/apps/redmine/htdocs/files/* /home/erick/redmineback/files cp /opt/redmine-2.3.1-0/apps/redmine/htdocs/public/favicon.ico /home/erick/redmineback/
/opt/redmine-3.2.2-0/
sudo /opt/redmine-3.2.2-0/mysql/bin/mysqldump -u bitnami -p bitnami_redmine > /home/erick/redmineback/3.2.2backup.sql
sudo /opt/redmine-3.2.2-0/mysql/bin/mysql -u bitnami -p DROP DATABASE bitnami_redmine; CREATE DATABASE bitnami_redmine; quit
經過phpmyadmin的導入功能實現php
cd /opt/redmine-3.2.2-0/apps/redmine/htdocs sudo /opt/redmine-3.2.2-0/ruby/bin/ruby bin/rake db:migrate RAILS_ENV=production
設置apache,啓用gogs,修改apache參數文件:mysql
/opt/redmine-3.2.2-0/apache2/conf/httpd.conf
在最後增長如下配置信息:git
<VirtualHost *:80> DocumentRoot "/opt/redmine-3.2.2-0/apps/redmine/htdocs/public/" ServerName qa.yncic.com ServerAlias qa.yncic.com </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@domain.tld ServerName git.yncic.com ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </VirtualHost>
sudo cp -r /opt/redmine-2.3.1-0/apps/redmine/htdocs/files/* /opt/redmine-3.2.2-0/apps/redmine/htdocs/files/ sudo chown -R daemon:daemon /opt/redmine-3.2.2-0/apps/redmine/htdocs/files/*
sudo cp /opt/redmine-2.3.1-0/apps/redmine/htdocs/public/favicon.ico /opt/redmine-3.2.2-0/apps/redmine/htdocs/public/favicon.ico
https://wiki.bitnami.com/Applications/BitNami_Redmine#How_to_upgrade_Redmine.3fweb
https://wiki.bitnami.com/Components/MySQL#How_to_create_a_database_backup.3fsql
http://fableking.iteye.com/blog/1395366數據庫
http://blog.csdn.net/shishuo365/article/details/45999053apache