Skip to content

Commit

Permalink
public backups
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturk committed Oct 29, 2019
1 parent ed28eed commit c8d56ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/backup
Expand Up @@ -6,4 +6,5 @@ aws s3 cp openstatesorg.pgdump s3://${S3_BUCKET}/ocd/`date +%Y-%m-%d`-openstates


pg_dump -Fc openstatesorg --exclude-table-data 'auth*' --exclude-table-data 'boundaries*' --exclude-table-data 'django_admin*' --exclude-table-data "geo*" --exclude-table-data "simplekeys*" > public.pgdump
aws s3 cp public.pgdump s3://${S3_BUCKET}/public/`date +%Y-%m-%d`-public.pgdump
aws s3 cp --acl public-read public.pgdump s3://${S3_BUCKET}/public/daily/`date +%Y-%m-%d`-public.pgdump
aws s3 cp --acl public-read public.pgdump s3://${S3_BUCKET}/public/monthly/`date +%Y-%m`-public.pgdump

0 comments on commit c8d56ff

Please sign in to comment.