Bitnami Redmine (Linux version) recovery procedure

In Bitnami Redmine (Linux version ver.4.1.1-1), the browser could not be opened due to HTTP500 error. As a memorandum, leave a backup-restore procedure.

① Get backup

--Ticket attachment  Bitnami\redmine-4.1.1.0\apps\redmine\htdocs\files Copy the entire files directory and store it in the backup destination

--Database (all settings such as tickets and projects) Database backup-recovery can be done by opening PhpMyAdmin in a browser or by using a command.

** [When using PhpMyAdmin] ** Bitnami redmine stack screen> Select Open phpMyAdmin You can log in with ID: root / Pass: password

Select the database "bitnami_redmine" you want to dump on the left side of the screen Select items in "Check all" and "Checked items: Export". Export to any location in sql format

** [If you want to execute with a command from the terminal] ** Bitnami\redmine-4.1.1.0\apps\redmine\htdocs\config\database.yml Make a note of the contents of the above yml file

production:   adapter: database: ← database name   host: username: ← username password: ← password

mysqldump -u (user name) -p (password) (database name)> Data output destination

② Uninstall

Delete Redmine storage folder Command rm -rf / storage path

③ Reinstall

Reinstall Bitnami redmine package

④ Restore

** [When using PhpMyAdmin] **

  1. Open your browser from Open phpMyAdmin
  2. Select the database "bitnami_redmine" on the left side of the screen and delete all the data in it.
  3. Import the spl file backed up in ②

** [When using a command] ** mysql -u (user name) -p (password) (database name)> Specify the dumped data Check database.yml again for the above user name etc.

** [Recover ticket attachments] ** Store the entire attachment in the files directory

Recommended Posts

Bitnami Redmine (Linux version) recovery procedure
Linux mint installation procedure
Check Linux kernel version
CentOS 8 installation procedure (latest version)
[Linux] [Initial Settings] Backup & Recovery
[LINUX kernel rebuild] Version upgrade (4.18.0 → 5.8.8)