views:

29

answers:

1

I've exceeded my svn hosting limit so I need to remove all binaries and images from it. How do I issue a command to delete and ignore for example all *.jpg files ?

+3  A: 

Simply deleting the files now won't reclaim space. It will be marked as deleted, but the old revisions are still stored in the repository.

The only way to completely remove all traces of a file is to dump the repository (svnadmin dump), filter out the undesired files (use svndumpfilter), and create a new repository from the modified dump.

I would talk to your hosting service, since I would expect you don't have the required access to do this yourself.

Michael Madsen
Using "svnadmin dump" and "svnadmin load" is extremely dangerous. If you use it to get rid of selected revisions, and those revisions contain information about other non-binaries files, you will lose information and there is a chance that your new SVN repository won't be created correctly.
Oded