# Self Hosting Primero issues

**URL:** <https://support.primero.org/forum/t/self-hosting-primero-issues/437>\
**Category:** Primero IMS\
**Tags:** v2-0\
**Created:** [May 24, 2021, 6:43am UTC](https://support.primero.org/forum/t/self-hosting-primero-issues/437 "2021-05-24T06:43:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![irlawrence](https://support.primero.org/forum/user_avatar/support.primero.org/irlawrence/32/8_2.png) [@irlawrence](https://support.primero.org/forum/u/irlawrence)\
**Post date:** [May 25, 2021, 9:40am UTC](https://support.primero.org/forum/t/self-hosting-primero-issues/437/2 "2021-05-25T09:40:31Z")

</div>

For the [installation guide](https://support.primero.org/forum/t/self-hosting-primero-v2-installation/434) I used Ubuntu 20.04 on both the target and deployment machines. It will likely work using Mac OSX for the deployment machine (untested so just a guess) and might work using Windows (with the Linux sub system) as the deployment machine (again untested so even more of a guess)  
Configurations can no longer be exported as they were in v1 - they can however be promoted from alpha to production.  
A backup strategy must always be in place - minimally that would be to backup the database. One tool to do that is pg\_dump. This command must be run as a user with read permissions to the database you intend to back up.

Log in as the `postgres` user:

`su - postgres`

Dump the contents of a database to a file by running the following command. Replace `dbname` with the name of the database to be backed up.

`pg_dump dbname > dbname.bak`

The resulting backup file, `dbname.bak`, can be transferred to another host with `scp` or stored locally for later us

---

_[View the full topic](https://support.primero.org/forum/t/self-hosting-primero-issues/437)._
