TS Guhan
TS Guhan

Reputation: 195

Is it possible to take svn copy exclude particular directory?

I need to take a backup of working copy. If I take svn copy it will copy the entire working copy. I don't want to take the entire project copy. Because one of the directory size is too big. I can manage without taking that directory backup.

So how do I take svn copy exclude one directory?

I have two environment called dev and qa. Whenever I am giving build I just take a backup. Usually, I will do the following procedure to take a back up.

  1. Right click from the working copy directory, and choose repo-browser
  2. svn window will open
  3. Right click from dev trunk directory and as I shown in the below image copy to tags directory
  4. When I am using copy to option, I don not want to copy the Media directory. And except media directory I would copy all files and folders to tags directory.

So except media directory I would like to copy the rest of the files and folders.

If there is any alternative or easy solution to take a backup except particular directory, please let me know.

Upvotes: 0

Views: 1067

Answers (1)

Shayan Ghosh
Shayan Ghosh

Reputation: 892

svn propset svn:ignore dirname .

example of directory

\project
    \src
    \cache
    \othr

now set the property by

svn propset svn:ignore cache .

Explanation in brief: svn:ignore is the name of the property being set, cache is the value of the property, and . is the directory you're setting this property on. This should be the parent directory of cache.

To check again

> svn proplist
Properties on '.':
  svn:ignore

To se ignore's value

> svn propget svn:ignore
cache

to delete this

svn propdel svn:ignore

Upvotes: 1

Related Questions