1
votes

I have a subversion server running with a repository at /srv/repos/project.

What i like to do is import all the files from a remote webserver. How can i do this, i have tried to use the import command.

svn import http://www.domain.nl/ file://srv/repos/svn/project -m "first import"

The problem is of course that i can't access the http:// protocol, but can i use for example a ftp connection?

3

3 Answers

1
votes

You can do it in two steps:

  • download the files from remote webserver by FTP and place them into your repo as plain unversioned files;
  • do svn import of your local downloaded files.
0
votes

checkout rsvndump

Also look at this blog for some sample usage

0
votes

You could use FTP, or SCP to accomplish this. HTTP can not work, as there is no method in HTTP to query all accessible files, which means subversion doesn't know what files it should retrieve. The simplest of all solutions is download the files (e.g. by using scp), then add them to subversion, and commit.

  • scp -r [email protected]:/directory/ ./local/
  • svn add ./local/*
  • svn commit -m "Adding all pre-existing files."