Changes between Initial Version and Version 1 of how-to/servers/backup-postgres


Ignore:
Timestamp:
Oct 8, 2013, 2:11:47 PM (12 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • how-to/servers/backup-postgres

    v1 v1  
     1= How do I backup my postgres database? =
     2
     3Most members have MySQL databases, which are backed up for you and stored in the backups directory of your hosting order.
     4
     5If 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
     7You are strongly encouraged to run your own backups as well.
     8
     9To manually create a backup of your database, type:
     10
     11{{{
     12pg_dump [dbname] > backup.sql
     13}}}
     14
     15Replace [dbname] with the name of your database.
     16
     17Then, you can copy backup.sql to your local computer.
     18
     19You could also put this command into a [wiki:faq/cron-job cron job] so it runs once a day.
     20
     21
     22