-f parameter has higher priority than -i so in this case it would be ignored. You should never use -f unless you know what you want to do<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 11, 2012 at 4:45 AM, Ori Livneh <span dir="ltr"><<a href="mailto:ori@wikimedia.org" target="_blank">ori@wikimedia.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">For source code, use Git or some other source control management system, and push to a remote repository: either Gerrit, if your code is open source and relevant to MediaWiki / Wikimedia projects, or a third party like GitHub, Bitbucket, Gitorious, etc. (It's quite easy to set up multiple remotes.)<br>

<br>
The broad latitude labs gives you to install and configure software makes it relatively easy to implement a backup strategy that suits your particular needs -- have a look at the documentation for rsync, for example. You can also reduce the chance careless errors will result in permanent damage by adopting a suitable file permission scheme. There are also lots of small tricks, like aliasing rm to "rm -i" (which interactively asks you to confirm each deletion). If you explain your needs a bit further, I or something else might be able to offer more specific advice.<br>

<div><div class="h5"><br>
<br>
<br>
On Tuesday, December 11, 2012 at 12:55 AM, legoktm wrote:<br>
<br>
> After just accidentally rm -rf'ing all of my files on the bots project, petan informed me on IRC that there are no backups of user files.<br>
><br>
> Is this something that can be setup to protect stupid users like myself from problems like this again?<br>
> -- Legoktm<br>
> <a href="http://enwp.org/User:Legoktm" target="_blank">http://enwp.org/User:Legoktm</a><br>
><br>
</div></div>> _______________________________________________<br>
> Labs-l mailing list<br>
> <a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a> (mailto:<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a>)<br>
> <a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</blockquote></div><br></div>