Consider this:
- I have ftp server ABC
- ~30GB and thousands of directories and files
- I have read only user to this ftp
- this is not my server, I do not have access to it's administration/configuration
Can I create FTP mirror with version control?
I wanted to automatically sync this ABC server with my local copy and next I wanted to make a commit with some version control system. Are there any existing tools for such thing (doesn't matter linux or windows)?
First thought - to use WinSCP automatic synchronization commands and when it finish make commit with SVN - is this good solution?
You could write a batch file that does the following:
1)
winscp synchronize
to get the files2)
svn add
to version control any new files3)
svn commit
at the end to commit the filesKeep in mind that Version Control works best with text based files.
Example
This example works for me:
Where config.txt is this:
Notes
1) Run the bat from
C:\localFTP
2) If
winscp
is not in the%PATH%
add it or put this at the top of the bat file:3)
svn
should be in the%PATH%
if it isn't you will need to add it