Restore selected files from a SolidGroundUX framework archive
Source: target-root/usr/local/libexec/solidgroundux/untar-it.sh
Restore selected files from a SolidGroundUX framework archive
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_scan_cli_args | Record which restore settings were supplied explicitly. | - $@ — Original command-line arguments. | — |
_cleanup_staging | Remove the temporary extraction directory. | — | — |
_resolve_archive | Resolve ARCHIVE_FILE against ARCHIVE_DIRECTORY. | — | — |
_list_archives | Find readable .tar.gz archives in ARCHIVE_DIRECTORY and store their basenames. | — | — |
_select_archive | Display available archives and resolve a numeric user selection. | — | — |
_validate_archive_entries | Reject unsafe archive entry paths. | — | — |
_validate_parameters | Validate restore settings. | — | — |
_getparameters | Resolve and confirm restore settings. | — | — |
_extract_staging | Extract the validated archive into temporary staging. | — | — |
_select_files | Select staged files using directory and filename mask. | — | — |
_restore_files | Restore selected staged files beneath the target root. | — | — |
Description
Selects a .tar.gz archive, validates its entry paths, extracts it into a temporary staging directory, and restores files matching an optional directory and filename mask beneath a selected target root.
Usage
Run the executable from its shell command (or installed wrapper):
untar-it
untar-it --archive solidgroundux-20260804T010000.tar.gz --directory usr/local/lib/solidgroundux/common --match '*.sh'
Script-specific options:
--auto,-a: Restore without prompting.--archive VALUE,-f: Archive filename or absolute path.--archive-dir VALUE,-d: Directory containing framework archives.--target VALUE,-t: Filesystem root beneath which files are restored.--directory VALUE: Optional directory within the archive.--match VALUE,-m: Filename or shell-style file mask.
