[raspberry-vi] Re: Tough lesson

  • From: "Ken Perry" <kperry@xxxxxxxxxxxxx>
  • To: <raspberry-vi@xxxxxxxxxxxxx>
  • Date: Thu, 11 Mar 2021 09:42:30 -0500

Wow!  I am sure we all have at least one nasty story like that.  I lost 800 meg 
once which included all my banking information for 10 years.  That was back in 
the unstable days of Linux though and while it wasn't rm it was something just 
as bad.  Glad to hear you were able to recover even if you had to come at it 
sideways.



-----Original Message-----
From: raspberry-vi-bounce@xxxxxxxxxxxxx <raspberry-vi-bounce@xxxxxxxxxxxxx> On 
Behalf Of Michael A Ray (Redacted sender "mike.ray" for DMARC)
Sent: Thursday, March 11, 2021 9:05 AM
To: raspberry-vi@xxxxxxxxxxxxx
Subject: [raspberry-vi] Tough lesson

Hello,

You would think that after over thirty years of being involved with computers 
professionally, and after 25 years of using Linux, I would have learned that if 
I was regularly in the habit of typing:

rm *~

In a directory to get rid of nano backup files, then it is inevitable I would 
one day type:

rm *

Thus it was that yesterday morning I deleted all the original source of all 
blog posts for raspberryvi.org.

Never mind...

I have written a Python script and library that scrapes the articles from 
online at raspberryvi.org using BeautifulSoup and re-creates the original 
markdown.

Just a little checking is all that is needed to make sure each article is as it 
was before.

I usually use git to initialize a git repository in any tree I am working in, 
but had neglected to do so for raspberryvi.org.

Tough lesson. But hey, it was fun writing the Python scraping code.

Mike

--
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK

"Perfection is achieved, not when there is nothing more to add, but when there 
is nothing left to take away." -- A. de Saint-Exupery

https://cromarty.github.io/
http://eyesfreelinux.ninja/
http://www.raspberryvi.org/


===========================================================
The raspberry-vi mailing list
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: