There is a new tool, spacewalk-final-archive, to be released soon for 5.6/5.7. Its intended use case is for customers preparing to 'mothball' their Sat5 system as the final step before switching to Sat6. We probably need a small section on this tool in the official product-docs. Maybe a new section or appendix in the Installation Guide, "Final steps when decommissioning your Satellite", perhaps? The tool will be released as part of the existing spacewalk-utils RPM. The tool has internal help: === ~ $ ./spacewalk-final-archive --help Usage: spacewalk-final-archive [options] Options: -h, --help show this help message and exit --dir=DIR Specify directory to store the final archive into (will be created if not found) - defaults to /tmp/spacewalk-final --no-db Do not archive a database backup --no-reports Do not archive space-report output --no-debug Do not archive spacewalk-debug output --no-transition Do not archive spacewalk-export output --clean How do I clean up from previous runs? === and a man-page: === SPACEWALK-FINAL-ARCHIVE(8) SPACEWALK-FINAL-ARCHIVE(8) NAME spacewalk-final-archive - Utility for archiving as much exportable data as available from a running instance SYNOPSIS spacewalk-final-archive [ options ... ] [ --dir=DIR ] [ --no-db ] [ --no-reports ] [ --no-debug ] [ --no-transition ] [ --clean ] [ -h ] [ --help ] DESCRIPTION spacewalk-final-archive archives as much exportable data as is available from a running spacewalk system This tool leverages a number of existing spacewalk utilities, including db-control, spacewalk-report, spacewalk-debug, and spacewalk-export, to collect their output into a specified location and gather it into one compressed file that can be easily stored elsewhere as an archive of the ’final’ state of the spacewalk system. Individual tools’ output can be skipped if desired. OPTIONS --dir=DIR Specify directory to store results (will be created if not found) - defaults to /tmp/spacewalk-final --no-db Do not gather the output of db-control backup --no-reports Do not gather the output of all spacewalk-report --no-debug Do not gather the output of spacewalk-debug --no-transition Do not gather the output of spacewalk-export --clean Describes how to clean up from previous runs. This does not execute the command, leaving it to the user to decide whether issuing an ’rm -rf’ command as root is a good idea. -h, --help Display the help screen with a list of options. EXAMPLES ARCHIVE ALL ENTITIES TO THE DEFAULT LOCATION (/TMP/SPACEWALK-FINAL) spacewalk-final-archive ARCHIVE ONLY THE DATABASE AND SPACEWALK-DEBUG OUTPUT, USING DIRECTORY /TMP/ARCH AS A DESTINATION spacewalk-final-archive --dir=/tmp/arch --no-reports --no-transition AUTHORS Grant Gainey<ggainey> Version 0.1 04 February 2015 SPACEWALK-FINAL-ARCHIVE(8) ===
Hi Grant, What's the ETA for this tool? - Dan
Dan - tool is complete and in QE's hands right now, and can be released as soon as it receives their OK.
Any chance to get this and section 4.4 published ? :) Thanks, Cliff
This page is published: https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html/User_Guide/ch04s05.html Grant, are there any further additions requires on that page?
Dan - looks great to me! Thanks!