[plug] Dumb stuff recovery
Brad Campbell
brad at fnarfbargle.com
Mon Aug 26 15:56:05 AWST 2024
On 26/8/24 15:38, Byron Hammond wrote:
> Does rsync have a dry run option?
>
It does and I do use it when doing critical stuff I always use it. In this application I was not rushing so much, but just running on auto pilot.
I'd probably performed this precise procedure "tweak diff for config files, apply diffs, test, rsync back to clean, reboot, lather, rinse and repeat" 15 times over the last couple of hours. It just so happened in this one instance I was distracted and put a teensy weensly little slash where it wasn't wanted.
It was one of those situations where I had a functioning bash root shell that had zero supporting binaries and I thought "how can I wiggle out of this without rebooting".
I was trying to find out how to reinstate the linker because I knew once I had that I could load up on LD Paths and get things running from the backup directory. It was cruising around the web and toying with echo and pipes that I came across a stackoverflow answer to a question on setting the library path that pointed to here : https://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN77 . Top item shows the loader being run directly. Gave it a whirl and away we went.
It was one of those things I thought others might want to file away for that 3am Monday morning issue where things have really, really gone wrong.
More information about the plug
mailing list