Bug 1374080 - [RFE] katello-backup saves DB directories instead of dumping DB via database tooling
Summary: [RFE] katello-backup saves DB directories instead of dumping DB via database ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Backup & Restore
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: Christine Fouant
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-07 22:26 UTC by Chris Duryee
Modified: 2016-09-08 00:16 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-08 00:16:43 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Chris Duryee 2016-09-07 22:26:57 UTC
Description of problem:

If you run katello-backup, it will save the postgres and mongo databases. For example, running "katello-backup --skip-pulp-content <path-to-backup-dir>" will result in a large backup that contains journal files and such.

Instead, katello-backup can use mongodump/mongoimport and pg_dump/pg_restore to back up and restore the two databases. This would make the backup files significantly smaller, and also easier to work with for debugging purposes.

NOTE: this would introduce an incompatibility between older backups and newer versions of katello-backup, so we would likely need a new option called '--small-db-dumps' or similar (not sure on best wording here).

Version-Release number of selected component (if applicable): 6.2.1

Comment 2 Chris Duryee 2016-09-08 00:16:43 UTC
closing as notabug, it would likely take more time to dump/restore in the dump format than to download and extract.


Note You need to log in before you can comment on or make changes to this bug.