I recently exported a table to another database... with the typical setting to Truncate existing data.
BUT i maganged to forget to set the destination DB .. and it just happened to be the same as the source DB. so ... it duly truncated the table... lost all the data :( :(
Maybe the function should check that it is not exporting a table to itself!!