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]
-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 - Utility for archiving as much exportable data as available from a running instance
spacewalk-final-archive [ options ... ]
[ --dir=DIR ]
[ --no-db ]
[ --no-reports ]
[ --no-debug ]
[ --no-transition ]
[ --clean ]
[ -h ] [ --help ]
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.
Specify directory to store results (will be created if not found) - defaults to /tmp/spacewalk-final
Do not gather the output of db-control backup
Do not gather the output of all spacewalk-report
Do not gather the output of spacewalk-debug
Do not gather the output of spacewalk-export
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.
Display the help screen with a list of options.
ARCHIVE ALL ENTITIES TO THE DEFAULT LOCATION (/TMP/SPACEWALK-FINAL)
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
Version 0.1 04 February 2015 SPACEWALK-FINAL-ARCHIVE(8)
What's the ETA for this tool?
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 ? :)
This page is published:
Grant, are there any further additions requires on that page?
Dan - looks great to me! Thanks!