Inquiry: HRMS Installation on ERPNext Locally - Need Data Preservation Guidance

While attempting to install HRMS (Human Resource Management System) on my ERPNext site, I encountered an error related to my existing data.


bench --site mysite.local install-app hrms

Installing erpnext…
An error occurred while installing hrms: ERPNext can only be installed on a fresh site where the setup wizard is not completed.
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall
Traceback (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 462, in install_app
_install_app(app, verbose=context.verbose, force=force)
File “apps/frappe/frappe/installer.py”, line 268, in install_app
install_app(required_app, verbose=verbose)
File “apps/frappe/frappe/installer.py”, line 286, in install_app
out = frappe.get_attr(before_install)()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/erpnext/erpnext/setup/install.py”, line 44, in check_setup_wizard_not_completed
frappe.throw(message) # nosemgrep
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/init.py”, line 577, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 549, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 500, in _raise_exception
raise exc
frappe.exceptions.ValidationError: ERPNext can only be installed on a fresh site where the setup wizard is not completed.
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall


I am seeking assistance on how to install HRMS without losing the data on my existing ERPNext site. If I proceed with a re-installation, there is a concern that all current data might be erased. I would appreciate any guidance or support on this matter.
Thank you.

Export your data to your custom app

fixtures = ["Doctype Name"]

bench --site [SiteName] export-fixtures 

reinstall your site

bench --site [SiteName] reinstall

install hrms

bench --site [SiteName] install-app hrms
bench --site [SiteName] migrate

fixtures will import your data