Bug 1188749

Summary: [RFE] Provide a tool to gather all data available to a Satellite that is being decommissioned
Product: Red Hat Satellite 5 Reporter: Grant Gainey <ggainey>
Component: OtherAssignee: Grant Gainey <ggainey>
Status: CLOSED ERRATA QA Contact: Ales Dujicek <adujicek>
Severity: low Docs Contact:
Priority: unspecified    
Version: 570CC: adujicek, cperry, xdmoon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-utils-2.3.2-16-sat Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1200891 (view as bug list) Environment:
Last Closed: 2015-03-19 09:16:01 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1127217, 1200891    

Description Grant Gainey 2015-02-03 15:55:45 UTC
We would like to have a single tool that could be run on a satellite instance that would gather up all of the data available to that instance, prior to 'turning it off'.

Suggested functionality includes:

create an archive-location <spacewalk-final>
  postgres-backup into <spacewalk-final>/db_backup/ 
  spacewalk-reports into <spacewalk-final>/reports
  spacewalk-export into <spacewalk-final>/export
  spacewalk-debug into <spacewalk-final>/debug
  tar czvf <spacewalk-final>/../spacewalk_final.tar.gz <spacewalk-final>

Suggested name: spacewalk-final-archive

Suggested CLI switches:

spacewalk-final-archive
	--dir <archive-location>
	--no-db
	--no-reports
        --no-transition
        --no-debug

Comment 1 Grant Gainey 2015-02-03 16:01:45 UTC
spacewalk github:
6a0e544dc00be2682aa934574c9efddd1e1bdc30
33ae7d1f5dea1a4caa45a23bc4e489091b0e9ab8
57136fbac65c8a7d92e2828021b78666ed71206a

Comment 6 errata-xmlrpc 2015-03-19 09:16:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2015-0702.html