开发者

use of VisualSVN as a remote backup

开发者 https://www.devze.com 2023-01-19 21:48 出处:网络
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

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:

  1. 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.
  2. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消