View previous topic :: View next topic |
Author |
Message |
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Fri Aug 26, 2005 6:31 pm Post subject: DO NOT USE BEAGLE-BUILD-INDEX |
|
|
Today I was experimenting with Beagle.
I decided to execute the following:
Code: | beagle-build-index --recursive /home |
It deleted everything.
Everything. Almost like a damn rm -rf ~.
DO NOT USE IT.
mod edit: +sticky --Earthwings
2005-09-11 -sticky --Earthwings _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Fri Aug 26, 2005 6:45 pm Post subject: |
|
|
Oh, and just a little update: It seems that Beagle did a good job of totally wiping my data, as I can't recover even half of it with the dd and losetup tricks floating around these forums. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Fri Aug 26, 2005 7:09 pm Post subject: |
|
|
That's pretty important, did you contact the beagle developers also?
Glad I don't use beagle.
I hope you had a backup. Too many people just don't do backups. |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
Posted: Fri Aug 26, 2005 7:17 pm Post subject: |
|
|
Headrush wrote: | That's pretty important, did you contact the beagle developers also?
Glad I don't use beagle.
I hope you had a backup. Too many people just don't do backups. |
All of my important stuff was on my server.
I'm going to report it to the Beagle devs as soon as I figure out what section of code did what it did to my files. _________________ I was a Gangster for Capitalism, by Major General Smedley Butler.
Server status: Currently down, being replaced with fresh install - 20% completed. |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Fri Aug 26, 2005 7:35 pm Post subject: |
|
|
I would report it first, you may save some poor helpless soul some major problems. |
|
Back to top |
|
|
Armand Karlsen n00b
Joined: 18 Aug 2005 Posts: 47 Location: London, UK
|
Posted: Fri Aug 26, 2005 8:03 pm Post subject: |
|
|
Reminds me of a conversation I read in an IRC tech channel. One person was discussing how he would form a band that really appeals to geeks, and then name it "rm -rf *" . |
|
Back to top |
|
|
HydroSan l33t
Joined: 04 Mar 2004 Posts: 764 Location: The Kremlin (aka Canada)
|
|
Back to top |
|
|
brullonulla Tux's lil' helper
Joined: 13 Jan 2005 Posts: 117 Location: bologna
|
Posted: Sat Aug 27, 2005 5:02 pm Post subject: |
|
|
Too good I first decided to look for "beagle" on the forums before trying to install it! _________________ Google is the index to the unwritten Linux manual. |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sat Aug 27, 2005 5:21 pm Post subject: |
|
|
Scary. I don't want to spread FUD, but it seems to be a real bug (confirmed by another user in bugzilla), so let's better prevent people from wiping out their data and make this thread sticky until the bug is resolved. Moved from Desktop Environments to Unsupported Software. |
|
Back to top |
|
|
RaZoR1394 Guru
Joined: 09 Jan 2005 Posts: 356
|
Posted: Sat Aug 27, 2005 6:56 pm Post subject: |
|
|
That sounds very scary . Thanks for the heads up. I'm never going to use that command for sure. _________________ http://en.wikipedia.org/wiki/Cell_(microprocessor) |
|
Back to top |
|
|
GaMMa l33t
Joined: 23 Aug 2002 Posts: 684 Location: USA
|
Posted: Tue Aug 30, 2005 11:05 pm Post subject: |
|
|
I'll wait a little while to try beagle then. I value my home directory. _________________ Ubuntu Linux Dapper Drake running Gnome-2.14.1
[Website | Screenshot | Portage Guide] |
|
Back to top |
|
|
vdemeester Tux's lil' helper
Joined: 12 Aug 2004 Posts: 138 Location: France
|
Posted: Wed Aug 31, 2005 9:37 am Post subject: |
|
|
GaMMa wrote: | I'll wait a little while to try beagle then. I value my home directory. |
Hum, i'm currently using beagle and since months and months. I never have a problem but i also never test the beagle-build-index --recursive /home.
A good things to have report the bug, my new goal : make a backup ^^ _________________ shortbrain.org |
|
Back to top |
|
|
GaMMa l33t
Joined: 23 Aug 2002 Posts: 684 Location: USA
|
Posted: Sat Sep 03, 2005 3:11 am Post subject: |
|
|
I'm on reiser4 so using the sqlite backend things would be slow anyway. I'll wait until something blows over with reiser4 _________________ Ubuntu Linux Dapper Drake running Gnome-2.14.1
[Website | Screenshot | Portage Guide] |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Fri Sep 09, 2005 12:29 am Post subject: |
|
|
GaMMa wrote: | I'm on reiser4 so using the sqlite backend things would be slow anyway. I'll wait until something blows over with reiser4 | [flame]
...or you could use a better filesystem.
[/flame]
Is this with FAM? If so, have you tried it with gamin/inotify? _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Sun Sep 11, 2005 7:57 pm Post subject: |
|
|
this isn't a *code* bug as such.
beagle-build-index is perfectly safe if you use it as designed. here's a snippet of the usage info:
Quote: | Usage: beagle-build-index [OPTIONS] <path> [path] [path] <index path> |
notice that it expects (at least) 2 paths. the last path is a directory where you want to store the index that it builds, and beagle *will* clean out this directory.
example:
Code: | beagle-build-index --recursive ~ /var/tmp/myindex |
just thought i would clarify that, as the whole static index thing does work rather well, apart from this obvious usability issue. it has been fixed in cvs - you are forced to be more explicit of the target directory to store the index. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sun Sep 11, 2005 9:28 pm Post subject: |
|
|
Why is the whole directory cleared anyway? Don't you know the index filename(s) in advance?
Unstuck, I wonder why bugzilla didn't notify me about the bug progress _________________ KDE |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Sun Sep 11, 2005 9:49 pm Post subject: |
|
|
it could probably be modified to just delete the stuff it cares about - however if the index format ever changed, the code would ideally have to be taught to purge the older directories/files that arent used in the new format. it makes more sense from a design standpoint just to purge the whole thing if its useless, and even more so before the possibility of static indexes came along (when indexes were always in ~/.beagle/SomeIndex) _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
|