Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Add a backup script #1357

Merged
merged 2 commits into from
Sep 4, 2013
Merged

Add a backup script #1357

merged 2 commits into from
Sep 4, 2013

Conversation

chadwhitacre
Copy link
Contributor

This adds a little more automation to our weekly payday routine. The
first thing I do is take a backup of the database, which I store
locally. This automates that process. I factored out a script to convert
the DATABASE_URL envvar into PG* envvars for use by pg_dump (backup.sh)
and psql (recreate-schema.sql). It now echoes the envvars rather than
exporting as before when it was part of recreate-schema.sql.

This adds a little more automation to our weekly payday routine. The
first thing I do is take a backup of the database, which I store
locally. This automates that process. I factored out a script to convert
the DATABASE_URL envvar into PG* envvars for use by pg_dump (backup.sh)
and psql (recreate-schema.sql). It now echoes the envvars rather than
exporting as before when it was part of recreate-schema.sql.
@chadwhitacre chadwhitacre mentioned this pull request Aug 29, 2013
wyze added a commit that referenced this pull request Sep 4, 2013
@wyze wyze merged commit cda0693 into master Sep 4, 2013
@chadwhitacre chadwhitacre deleted the backup.sh branch September 4, 2013 22:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants