noclobber can keep you from accidently destroying your existing files by redirecting input over an already-existing file.
set noclobber