Bug 1374080

Summary: [RFE] katello-backup saves DB directories instead of dumping DB via database tooling
Product: Red Hat Satellite Reporter: Chris Duryee <cduryee>
Component: Backup & RestoreAssignee: Christine Fouant <cfouant>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-08 00:16:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.