I've setup subversion on my development server and now have an updated set of code I want to push to the live server. The live server has unversioned code, and I would like to use svn update to send the code from the development server to the live server. How can I force svn to overwrite the unversioned copies of the files that are already present? Is there another way to implement subversion no the live server that would result in less risk / small downtime?
I'd really not recommend subverison on a live site. If a conflict somehow occurs on your main page for example, your main page will get broken. Also, the presence of .svn directories just means one more thing for the web server to have to deal with. The best method in my opinion is to tarball up your changes , then expand that into the live server directory, or if it's just one file, scp it over.
Some people also use rsync to synchronize but you'll need to take some extra steps to lock rsync down to outsiders.