I think it’s your fault if you don’t have backups… but I legitimately think that we should restrict usage of classic Unix tools to scripts, and use safer tools ourselves… but I guess that’s just my opinion.
yeah i didnt want to script removing the tmp files bc theyre sometimes useful… usually i do read;find -delete; as like a “confirm” for me…
also, i do backup, but i guess only once a month… i was in the middle of a backup, the commands were: git add --all; git commit; find -delete; git push; and then confusion when i saw the .git folder was gone
ive been doing this for over a decade and this is the second (third?) time something like this has happened.
anyway, not trying to defend myself, maybe i should script the find and delete thing… but i just wanna hopefully prevent someone else’s data deletion.
i just deleted a month of notes by doing:
find $(pwd) “*.tmp” -delete
instead of:
find $(pwd) -iname “*.tmp” -delete
turns out the former throws an error on “*.tmp” but still deletes everything lol… PSA for everyone
I think it’s your fault if you don’t have backups… but I legitimately think that we should restrict usage of classic Unix tools to scripts, and use safer tools ourselves… but I guess that’s just my opinion.
yeah i didnt want to script removing the tmp files bc theyre sometimes useful… usually i do read;find -delete; as like a “confirm” for me…
also, i do backup, but i guess only once a month… i was in the middle of a backup, the commands were: git add --all; git commit; find -delete; git push; and then confusion when i saw the .git folder was gone
ive been doing this for over a decade and this is the second (third?) time something like this has happened.
anyway, not trying to defend myself, maybe i should script the find and delete thing… but i just wanna hopefully prevent someone else’s data deletion.
Damn! That’s a brutal one. Someone should maybe change that behavior.