You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dmitry <sv...@comita.ru> on 2005/03/22 09:37:59 UTC

cleaning fsfs for more free space

Hello users,

We deleted big files from svn repository, but folder with svn doesn't
became smaller.
How can we make svn repository to become smaller after deletion? Because deleted
files are not needed and they are really big?  

-- 
Best regards,
 Dmitry                          mailto:svn@comita.ru



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: cleaning fsfs for more free space

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
Dmitry wrote:
> We deleted big files from svn repository, but folder with svn doesn't
> became smaller.
> How can we make svn repository to become smaller after deletion? Because
> deleted files are not needed and they are really big?

You can't and that is intentional. Subversion _never_ modifies old revisions, 
and even though the file is not present in current revisions, it is present 
in older revisions stored in the repository.

The only way to change the history stored in a repository is indirectly via 
svndumpfilter, maybe that is what you want.

Uli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: cleaning fsfs for more free space

Posted by Saulius Grazulis <gr...@akl.lt>.
On Tuesday 22 March 2005 11:56, Saulius Grazulis wrote:

> AFAIU, the only clean way currently is to 'svn export' the whole
> repository, edit the resulting (huge text) file to delete unwanted parts
> and then  'svn import' it into a freshly created repository...

Upps, sorry, I meant 'svnadmin dump' and 'svnadmin load'. Sorry for the 
misinformation. 'svndumpfilter exclude' would help to filter out unwanted 
files.

By the way, you could also get around by 'svn export' and 'svn import', but 
you will lose all you history and retain just the last revision.

As a last resort, I would also try this:

0. create a fresh new repository
1. for each revision that does not contain huge file, check it out or export 
it.
2. extract the log mesasge of this revision.
3. check it into a new repository, with the old message.
4. Burn old repository onto the DVDs ;)
5. Remove the old repository from the disk.
6. Ask all your users to migrate to a new repository. (Or maybe just renaming 
new repository to have the old name would work?)

Regards,
Saulius

-- 
Saulius Gražulis

Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)

tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: cleaning fsfs for more free space

Posted by Saulius Grazulis <gr...@akl.lt>.
On Tuesday 22 March 2005 11:37, Dmitry wrote:

> Hello users,
>
> We deleted big files from svn repository, but folder with svn doesn't
> became smaller.

You mean 'svn del huge_file.dat'? If so it is still in the repository, you can 
always check it out later. :)

> How can we make svn repository to become smaller after deletion? Because
> deleted files are not needed and they are really big?

AFAIU, the only clean way currently is to 'svn export' the whole repository, 
edit the resulting (huge text) file to delete unwanted parts and then  'svn 
import' it into a freshly created repository... (see documentation, this is 
described)

After all, repository *is* designed to keep all changes; what if half a year 
later you will badly need the deleted huge files? ;)

And what about 'svnadmin deltify'? Would this reduce the space required by the 
repository? (this is probably also described in the docs)

NOTE: I would really back up the repository, preferably on the write-once 
media (CDs or DVDs) before attempting anything of the above... ;)

Saulius

-- 
Saulius Gražulis

Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)

tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: cleaning fsfs for more free space

Posted by Johan Appelgren <jo...@gmail.com>.
On Tue, 22 Mar 2005 12:37:59 +0300, Dmitry <sv...@comita.ru> wrote:
> Hello users,
> 
> We deleted big files from svn repository, but folder with svn doesn't
> became smaller.
> How can we make svn repository to become smaller after deletion? Because deleted
> files are not needed and they are really big?

Subversion is designed to never loose any information. So even if you
delete a file in HEAD it will still be there in the older revisions.

This faq might solve your problem though
<http://subversion.tigris.org/faq.html#removal>

/Johan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org