Reputation: 195
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.
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
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