Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add evm:db:dump:local and evm:db:dump:remote tasks #17483

Merged
merged 6 commits into from
May 31, 2018

Commits on May 31, 2018

  1. Adds helper method for building calculated db_opts

    A helper method that will be used in future commits.  Also adds a few
    specs to validate log output.
    NickLaMuro committed May 31, 2018
    Configuration menu
    Copy the full SHA
    bf7e19f View commit details
    Browse the repository at this point in the history
  2. Adds EvmDatabaseOps.with_mount_session (private)

    This methods is used to handle the session mount logic for the
    restore/backup methods in this class in a single spot.
    
    Note:  merged_db_opts is used here in the log messages because db_opts
    is not mutated as part of with_mount_session, but we want to make sure
    we are logging the correct info.  Putting the log statement inside the
    with_mount_session seemed like a bad idea, so rebuilding the calculated
    db_opts hash seemed like the least ugly workaround.
    NickLaMuro committed May 31, 2018
    Configuration menu
    Copy the full SHA
    6ad1323 View commit details
    Browse the repository at this point in the history
  3. Add EvmDatabaseOps.validate_free_space

    Moves out free_space calculation code from EvmDatabaseOps.backup into a
    helper method for later shared use.
    NickLaMuro committed May 31, 2018
    Configuration menu
    Copy the full SHA
    594e50d View commit details
    Browse the repository at this point in the history
  4. Add EvmDatabaseOps.dump

    Runs using the same setup as EvmDatabaseOps#backup, but runs a `pg_dump`
    under the hood.  It uses the same method for determining if there is
    enough diskspace for the dump as the backup method.  This isn't 100%
    accurate, but it should be "Good Enough™".
    NickLaMuro committed May 31, 2018
    Configuration menu
    Copy the full SHA
    93ef4c1 View commit details
    Browse the repository at this point in the history
  5. Add evm:db:dump:local and evm:db:dump:remote tasks

    Effectively a carbon copy of the `:backup` namespace tasks.
    NickLaMuro committed May 31, 2018
    Configuration menu
    Copy the full SHA
    cb8524a View commit details
    Browse the repository at this point in the history
  6. Add --exclude-table-data to evm:db:dump tasks

    Allows excluding of specific tables from the database dump that may not
    be necessary for the intended use.
    NickLaMuro committed May 31, 2018
    Configuration menu
    Copy the full SHA
    051a1f7 View commit details
    Browse the repository at this point in the history