Public Repository

Last pushed: 3 months ago
Short Description
Easy way to integrate Ruby Backup + Cron into your docker project. Container runs cron -f.
Full Description

Postgres 9.6, MySQL, Ruby Backup gem, Whenever gem

Note Ruby backup uses pg_dump and the version of pg_dump must match the database server you're backing up. This image currently has v 9.6 pg_dump

docker-compose example

#embedded schedule.rb and default backup model can be overridden
default schedule.rb
default appbackup.rb

  rubybackupcron:
    image: cuhaos/ruby-backup-cron:0.0.10
    volumes:
      #optionally include your own ruby backup model and whenever schedule
      # - ./appbackup.rb:/root/Backup/models/appbackup.rb
      # - ./schedule.rb:/root/Backup/schedule.rb
      - ./backups:/backups
    environment:
      - DB_USER=pguser
      - DB_PASS=pgpass
      - DB_NAME=my_db_name
      - DB_HOST=dbhostname
Docker Pull Command
Owner
cuhaos

Comments (0)