Manipulating files in a UCS File
I understand that the UCS file is just a tar of the bigip configuration. So using Tar, I am able to list out the contents of the UCS, but I am unable to delete individual files.
When I do:
tar --list --file=prestage.ucs config/bigip_base
I get:
config/bigip_base.conf
But when I try to delete that directory, it doesn't work:
tar --delete --file=prestage.ucs config/bigip_base.conf
I get the error:
tar: This Does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: config/bigip_base.conf: Not found in archive tar: Error Exit delayed from previous errors
I know I can extract the ucs into a directory, change the files I need to change and then re-compress them and restore the UCS, but I wanted a easier way out.
Thanks...