Move the new redmine version to the apps folder and name it “redmine” and then copy the following folders and files from the old copy to the new one: “scripts”, “conf” and “files” folders and all the yml files inside “config”. Once you have downloaded the newer Redmine version, you need to stop the servers and rename the old redmine folder: $ cd In that case, you can use the Subversion tool included in the Stack: $ svn co svn:///var/svn/redmine/trunk redmine You can choose to download the latest stable version of Redmine from RubyForge or you can download the latest repository version. Restart the servers and you can access your new Redmine version: $ cd įirst, you have to download the new Redmine version. $ rake db:migrate_plugins RAILS_ENV=productionįinally you should clean the cache and the sessions: $ rake tmp:cache:clear $ rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production $ cp /apps/redmine/vendor/plugins/ vendor/plugins/ You can get the full list of installed plugins in Administration -> Plugins section. If you installed additional redmine plugins, you should copy them to the new location. $ cp /apps/redmine/config/email.yml /apps/redmine/config/ $ mysql -u root -p bitnami_redmine /apps/redmine/files/* /apps/redmine/files/ Remember to start the “use_redmine” script or the shortcut on Windows before typing the following commands. Once it has been installed, you should recover the database from the backup. Install new Redmine Stack on a different path. Stop and uninstall previous Redmine Stack services $ cd You should follow section: Updating Redmine code only.įirst, you have to download the new Redmine Stack for your platform. In case you only want to upgrade the application code without modifying any other Stack components, If you want to upgrade Redmine and all Stack components Ruby, MySQL, Apache… You can follow the steps described in Updating to a new Redmine Stack. If you have important data, it is advisable that you create and try to restore a backup to ensure that everything works properly. It is strongly recommended that you create a backup before starting the update process. You can access your BitNami Redmine at the usual URL. To restore the system, copy the directory to a different Windows machine in the same location and follow these steps from a command prompt: $ cd Stop the servers using the shortcuts and copy the whole installation directory. On Windows, you should follow the same process. It is important to use the same path that was used when the stack was originally installed.įor example if you have a backup in a Red Hat machine, you can copy it to an Ubuntu Linux machine (a different distro!) in the same location. To restore this backup you only need to uncompress the backup tarball in the same location. Or you can create a tarball: $ tar -czvf Mysql> grant all privileges on bitnami_redmine.* to by 'BITNAMI_USER_PASSWORD' Once you have the backup file, you can restore it: $ mysql -u root -p bitnami_redmine create database bitnami_redmine This operation could take some time depending on the data size. $ mysqldump -u root -p bitnami_redmine > redmine_backup.sql Remember that you should run this command from the BitNami Redmine Stack console. If you are interested in a backup of only the database data, you can create a dump file using the “mysqldump” tool. There are different ways of creating a backup. On Windows you have a specific “use_redmine” shortcut to launch the console. On Linux or OS X you should only run the “use_redmine” script or the “rubyconsole” script: $ cd On OS X the installation directory is “/Applications/redmine- version” by default and on Windows is “C:\Program Files\BitNami Redmine Stack”.Īll commands should be executed from the BitNami Redmine Stack console. On Linux it is usually “/home/redmine- version” when installed as a regular user or “/opt/redmine- version” in the case of an installation as the root user. Throughout the article, we will use the installdir term to refer us to the installation directory. Although this post is based on the BitNami Redmine Stack, some of these solutions are valid for other BitNami applications. We have compiled all questions and solutions in this post to facilitate this task for other BitNami users. A lot of BitNami users have asked in our forums how to create a backup or update Redmine.
0 Comments
Leave a Reply. |