UK based. Perl, XML/HTTP, SAP, Debian hacker.
I just deleted some Perl scripts I was working on. I should have them back tomorrow from tape, but I'm not happy with myself. On almost every nix system I've ever used, rm has been aliased to rm -i, but not on this one, though it is now. Even if I blame it on my hay fever and nasty headache, I feel a right plonker at the moment.....
rm -i is bad because ... (Score:3, Insightful)
Reply to This
Re:rm -i is bad because ... (Score:2)
I can see the argument in this, indeed, you could say that's why I screwed up. Thankfully it's not serious, and the files are backed up, but it was annoying....
CVS, that something that we hope to implement soon....
-- "It's not magic, it's work..."
Re:rm -i is bad because ... (Score:2)
--
xoa
Re:rm -i is bad because ... (Score:2)
I know, it was a feeble excuse, but now I'm in a team of two instead of one, a lot of things will be done better.....
-- "It's not magic, it's work..."
backups (Score:3, Insightful)
Reply to This
Re:backups (Score:4, Insightful)
When I was doing my PhD, I saw many people suffer horribly at the hands of lost files, and the University showed no mercy. As a result I was paranoid, and had back-ups on different PCs, different Unix servers, and on floppy disks all over the country. As you would expect I had no problems at all, but I've taken a reasonable attitude ever since.
Over the years I've had NT die a few times, and take the NTFS partition with it, so I've always kept data spread over multiple partitions, and I make regular backups to CD-R.
In this case it was some scripts to do a process once, that I was re-using, and instead of deleting the log files, I deleted the scripts. I'll survive - though I did feel very stupid.
-- "It's not magic, it's work..."
Reply to This
Parent
Me too (Score:3, Interesting)
Reply to This
Re:Me too (Score:3, Interesting)
I was thinking about this on the way home, it can't be that hard to make rm do backing up on the fly. But as drhyde [perl.org] pointed out above, it could lull one into a false sense of security, and one could still come unstuck!
I suppose I'll just have to bite the bullet and actually use CVS properly.
-- "It's not magic, it's work..."
Backing up != 'rm -i' (Score:1)
I wasn't sure myself if I'd like my rm alias, but so far it's been fine for me.
Re:Backing up != 'rm -i' (Score:1)
Re:Backing up != 'rm -i' (Score:2)
Very!
-- "It's not magic, it's work..."
Re:Backing up != 'rm -i' (Score:1)
Re:Backing up != 'rm -i' (Score:3, Insightful)
---ict / Spoon
Re:Backing up != 'rm -i' (Score:1)
Re:Backing up != 'rm -i' (Score:2, Informative)
If you've aliased with -i, you'll be asked for confirmations on every little thing. With this, it's only major things that you probably didn't mean.
Of course, if you switch between accounts, some using zsh and some not, you'll have a problem =)
---ict / Spoon
rm -rf $HOME (Score:3, Funny)
Recently, I tried to create a local CPAN config, and after typing 3 times the /home/book/.cpan/ string in the
config file (which is a Perl script), I decided
to be clever and type $HOME = '/home/book/.cpan/' at the beginning of that script.
The mistake was to set the values as '$HOME/foo' (note the single quotes). Friendly as ever, CPAN.pm was very happy to create a directory named $HOME in my home directory. So my next move was to type rm -rf $HOME. I mean, that's exactly what I wanted to do... not.
Thanks for the backups. Very much.
Reply to This
Re:rm -rf $HOME (Score:3, Funny)
Very bad.... A little bit more drastic than my cock-up. As I read somewhere recently "a flamingo-up" like a cock-up only bigger and pink.
Yes, I know "cock-up" is not a reference to the anmimal or body parts, but it sounds good when things go wrong....
-- "It's not magic, it's work..."
Been There... (Score:2)
Yep I did that a couple of years ago. I'd been working on a prog for about 3-4 hours and had some test files in the same directory as the prog. I'd finished working on the code for the day and figured I should remove the test files as I didn't need them anymore. My test files were all named
termYYYYMMDDso I just did a quickrm te*. The problem? My program was calledtermrpt.pl. So seeing as I hadRe:Been There... (Score:2)
I don't have the luxury of CVS (yet), so it was a good job I'd just started, but I do have tape backup, so in my case not a dissaster, however, things will have to change, as it could have been very bad!
-- "It's not magic, it's work..."
Re:Been There... (Score:1)