Project

s3_backup

0.0
No commit activity in last 3 years
No release in over 3 years
Postgres, redis backup and restore
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0
~> 0.49

Runtime

 Project Readme

S3 Backup

Postgres

Backup

rake s3_backup:pg:backup[db_staging]

Import

rake s3_backup:pg:import[db_staging]

Redis

Backup

rake s3_backup:redis:backup

Import

rake s3_backup:redis:import[staging]

Configuration file

---

pg_database:
  host: <%= ENV['DATABASE_HOST'] %>
  user: <%= ENV['DATABASE_USER'] %>
  password: <%= ENV['DATABASE_PASSWORD'] %>

redis:
  dump_path: /var/lib/redis/6379/dump.rdb

s3:
  aws_access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
  aws_secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
  bucket: <%= ENV['S3_BUCKET'] %>
  aws_region: <%= ENV['AWS_REGION'] %>
  aws_endpoint: <%= ENV['AWS_ENDPOINT'] %>
  server_side_encryption: 'AES256'
  stub_responses: false
  pg_path: rds_backup
  redis_path: redis_backup
  keep: 5

tables:
  users:
    columns:
      first_name: first_name
      last_name: last_name
      email: email
    exception: '@mycompany.me'