[Zope] Data.fs & MySQL DB Blown Up!

Dieter Maurer dieter at handshake.de
Mon Mar 12 14:46:41 EDT 2007


tonylabarbara at aol.com wrote at 2007-3-12 07:54 -0400:
>Forgive the long (but necessary) background. I bought a new 500 GB hard drive for my server located on the other side of the world. I accidentally entered an erroneous command to copy everything from the old HD to the new one and ended up corrupting the OS. However, the *first* thing that happened was that command zapped my Data.fs. It was located on the new HD with a symlink for the entire var dir going from the old HD to the new one. 

This is very easy to do: copying a file to an (existing) destination
opens and truncates the destination. When the destination happens
to be equal to the source, the source is truncated as well -- and you have
lost your data.



-- 
Dieter


More information about the Zope mailing list