Re:I automated my job over a year ago and haven't told anyone
by jquast on Thursday January 20, 2022 @07:56AM
(#30008293)
File recovery is always possible. Unmount the partition (remount read-only if you have to), use a program like hexedit to open the raw disk partition and search for a unique series of text found in your script files, copy and paste the contents into new file, script restored!
I wrote some scripts that chunked the input, sanitized it, scripted loading and reloading (basically baby's first ETL) and got it to run without failing every week.
A few months later I fat-fingered a rm -rf and lost all the scripts. There were no backups because the machine was not rated as being in production.