| 1 | = How do I backup my postgres database? = |
| 2 | |
| 3 | Most members have MySQL databases, which are backed up for you and stored in the backups directory of your hosting order. |
| 4 | |
| 5 | If you are running a postgres database, your database is also included in our backup routine, however, you cannot directly access the database (you'll need to open a ticket to request that it be restored). |
| 6 | |
| 7 | You are strongly encouraged to run your own backups as well. |
| 8 | |
| 9 | To manually create a backup of your database, type: |
| 10 | |
| 11 | {{{ |
| 12 | pg_dump [dbname] > backup.sql |
| 13 | }}} |
| 14 | |
| 15 | Replace [dbname] with the name of your database. |
| 16 | |
| 17 | Then, you can copy backup.sql to your local computer. |
| 18 | |
| 19 | You could also put this command into a [wiki:faq/cron-job cron job] so it runs once a day. |
| 20 | |
| 21 | |
| 22 | |