Put backup and auto-save files somewhere in ~/.emacs.d.