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的导入功能实现
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参数文件:
/opt/redmine-3.2.2-0/apache2/conf/httpd.conf
在最后增加以下配置信息:
<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 [email protected] 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.3f
https://wiki.bitnami.com/Components/MySQL#How_to_create_a_database_backup.3f
http://fableking.iteye.com/blog/1395366
http://blog.csdn.net/shishuo365/article/details/45999053