I have a windows server, I can install VisualSVN on this machine.
What I would like to do is, use use some kind of batch script (开发者_C百科MS DOS .BAT) to remotely backup files to this server over https (I can schedule this script to run nightly).
< ignore > This will always be a one way copy, i.e. what ever is in the respository should ALWAYS be over-written with what ever is in the client machine < / ignore >
Assume I have a local folder on the client machine as such:
c:\Data
Question:
- (a) On the client machine(s) would I need to install any kind of SVN client software?
- (b) Can anyone help with the batch script to achieve this?
Edit:
I assume SVN will automatically only transfer files that have been updated?
As far as I understand it, you're confusing two things:
- A copy operation, which simply is a file system operation where no VCS whatsoever is involved. Otherwise your notion of 'overwrite' doesn't make any sense, because VCS systems are there to avoid exactly that.
- A scheduled check-in operation, which can only be initiated from a client machine. Therefore, it of course has to have a SVN client installed.
Thomas
精彩评论