for example.
I think you cannot use the export command inside a query, because query's are only able to deal with data inside a table, they cannot really read or write textfiles.
But I'm sure that there are scripts or tools for your windows or linux server that can make a backup(export) of your database each x time. You should ****** for that.