#561295 It's too easy to delete crontab via `crontab -r`

Package:
cron
Source:
cron
Description:
process scheduling daemon
Submitter:
David Black
Date:
2011-08-18 20:09:16 UTC
Severity:
wishlist
#561295#5
Date:
2009-12-16 00:02:36 UTC
From:
To:
It is far too easy to type 'crontab -r' (which is geographically very close to 'crontab -e') and accidentally delete one's crontab.  Please either remove this "feature" or alias cron = 'cron -i' in /etc/profile to ask if the user is sure before going ahead with deletion.  How often do you actually inted to completely remove a cron file?  How hard is it to zero out the file inside the editor if that's what you really want?
#561295#10
Date:
2011-01-24 22:01:22 UTC
From:
To:
Hi Javier,

Any updates on this one?
I've been hit by it too. :(

Olaf

#561295#15
Date:
2011-08-18 20:04:23 UTC
From:
To:
My workaround (after the first dataloss :) was placing a
    @daily crontab -l >| ~/.crontab.jan
line in my crontab.
HTH,
    Jan

P.S.: is it intentional that the /usr/share/bug/cron/script only
reports that I have EDITOR set, but not to which value? (see below)
--- usr/bin/editor:
/usr/bin/vim.athena
--- /usr/bin/crontab: -rwxr-sr-x 1 root crontab 30344 Jun 5 10:52 /usr/bin/crontab
--- /var/spool/cron drwxr-xr-x 5 root root 4096 Nov 6 2008 /var/spool/cron
--- /var/spool/cron/crontabs drwx-wx--T 2 root crontab 4096 Aug 10 17:54 /var/spool/cron/crontabs