mostly i come across a situation where i have to move files between two servers. I usually test my project live in one testing server onl开发者_如何学JAVAine and client checks the websties functionality and all. After completing all the task i again have to transfer the contents of the testing server to the live server along with data too...
So for that process i download all the files uploaded by client in the testing server, backup database and again upload the database to new server and client files too. if the client has uploaded less files then it is no prob but in case of large files i really waste my time copying files from one to next.
so how can i make the same process in less time even with large files
We use SVN which is hosted on our server.
When we want to port the site to a test area we have a test domain name setup which is hosted on the server, and we can just run svn update
on a subdomain and it will just copy all of the files across.
When we go live assuming the domain is hosted on the same server we just run svn update
on that folder as well. Very quick and easy.
精彩评论