Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using subversion, how to do this:

import files under /target but excluding those under /target/download1 and /target/download2

Anyone can provide a demo?

share|improve this question
Please consider revisiting some of your questions. Mark things as accepted if you have received a useful answer, or add comments or revise your questions with any additional details so we can get more of your questions resolved. – Zoredache Jun 8 '10 at 6:41
Similar answer solved at… – mkudlacek Jun 8 '10 at 6:56

Quick-and-dirty solution:

  • Move /target/download1 and /target/download2 to /tmp
  • svn import /target http:/
  • If necessary, move download1 and download2 back to /target

The last step is probably not necessary, since your /target directory will not be under version control afterwards, you will need to checkout to a new directory anyway, this will then have your desired structure.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.