My source code is almost always in a git repo, so the answer is usually no. However, I did (attempt) to go into the crontab editor recently, but used the -r argument instead of -e (they're right next to each other on the keybowrd), and ended up deleting the entire crontab, about 500+ lines of useful stuff.

Fortunately, Past Me had a job that ran twice a day that saved crontab to a file called crontab.latest, and I was able to easily recover. Past Me has made some blunders, but there have also been some clever moments.

If I'm writing anything of size or complexity, I just add it to the local repo. Creating a repo is super easy (it doesn't have to be pushed to the cloud), and then you can create a branch, go off and try something weird or different, secure in the knowledge that the original lame (but working) version is available if you need.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.


In reply to Re: Have you ever lost your work? by talexb
in thread Have you ever lost your work? by harangzsolt33

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.