On Fri, Jul 5, 2024 at 6:59 AM Daniel Sahlberg <daniel.l.sahlb...@gmail.com>
wrote:

> Den fre 5 juli 2024 kl 12:44 skrev Roshan Pardeshi <
> roshan.parde...@ncdex.com>:
>
>> Hello Nathan/ Team,
>>
>> Waitng for your revert on trail nail.
>>
>
> The short answer is that you can't decrease the disk usage from the
> repository. The repository is immutable and you can't change history.
>
> A branch is in general quite lightweight and only stores the information
> that has changed in that particular branch so I'm not sure exactly how much
> data you will save by deleting old branches.
>
> If you REALLY need to remove things, you could use `svnrdump` or `svnadmin
> dump` with the --include/--exclude options to only dump the revisions/paths
> you want to keep. Then you load the dumpfle to a new repository using
> `svnadmin load` (you should use the --ignore-uuid option when loading).
> When you do this, all existing working copies will be invalid and the users
> need to check out new working copies.
>
> Please check the help texts for more information.
>
> Kind regards,
> Daniel
>
>
>
>>
>> Regards,
>>
>>
>> <https://www.youtube.com/user/trustncdex> <https://twitter.com/ncdex>
>> <https://www.linkedin.com/company/27547/>
>> <https://www.facebook.com/TrustNCDEX/>
>>
>> Roshan Pardeshi
>> Senior Executive
>> National Commodity & Derivatives Exchange Limited
>>
>> <#m_4205676612975724340_m_2625935160000953184_m_3282584026429926061_m_5264752297521101632_SignatureSanitizer_SafeHtmlFilter_>
>> 9167426129
>> <#m_4205676612975724340_m_2625935160000953184_m_3282584026429926061_m_5264752297521101632_SignatureSanitizer_SafeHtmlFilter_>
>>  /  022 - 6640 3225
>> <#m_4205676612975724340_m_2625935160000953184_m_3282584026429926061_m_5264752297521101632_SignatureSanitizer_SafeHtmlFilter_>
>> roshan.parde...@ncdex.com
>> <https://mail.google.com/mail/?view=cm&fs=1&to=roshan.parde...@ncdex.com>
>> /as...@ncdex.com
>> <https://mail.google.com/mail/?view=cm&fs=1&to=as...@ncdex.com>
>> Toll-free number 1800 266 2339 / 1800 103 4861
>> <#m_4205676612975724340_m_2625935160000953184_m_3282584026429926061_m_5264752297521101632_SignatureSanitizer_SafeHtmlFilter_>
>>
>>
>>
>> On Wed, Jul 3, 2024 at 7:46 PM Roshan Pardeshi <roshan.parde...@ncdex.com>
>> wrote:
>>
>>> Hello Nathan,
>>>
>>> Please find the inputs below inline.
>>>
>>> What version of Subversion is used on the server? ---- *svn, version
>>> 1.7.14 (r1542130)*
>>>
>>> How big is the repository? -------  *1.5 TB*
>>>
>>> How many revisions in the repository? ------- *Please confirm how to
>>> and where to find revisions in the repository*
>>>
>>> What format is the repository backend? (bdb or fsfs?) ---- *Please
>>> confirm where to check the format of repository backend*
>>>
>>> Regards*,*
>>>
>>>
>>> <https://www.youtube.com/user/trustncdex> <https://twitter.com/ncdex>
>>> <https://www.linkedin.com/company/27547/>
>>> <https://www.facebook.com/TrustNCDEX/>
>>>
>>> Roshan Pardeshi
>>> Senior Executive
>>> National Commodity & Derivatives Exchange Limited
>>>
>>> <#m_4205676612975724340_m_2625935160000953184_m_3282584026429926061_m_5264752297521101632_m_-7064375209309644506_SignatureSanitizer_SafeHtmlFilter_>
>>> 9167426129
>>> <#m_4205676612975724340_m_2625935160000953184_m_3282584026429926061_m_5264752297521101632_m_-7064375209309644506_SignatureSanitizer_SafeHtmlFilter_>
>>>  /  022 - 6640 3225
>>> <#m_4205676612975724340_m_2625935160000953184_m_3282584026429926061_m_5264752297521101632_m_-7064375209309644506_SignatureSanitizer_SafeHtmlFilter_>
>>> roshan.parde...@ncdex.com
>>> <https://mail.google.com/mail/?view=cm&fs=1&to=roshan.parde...@ncdex.com>
>>> /as...@ncdex.com
>>> <https://mail.google.com/mail/?view=cm&fs=1&to=as...@ncdex.com>
>>> Toll-free number 1800 266 2339 / 1800 103 4861
>>> <#m_4205676612975724340_m_2625935160000953184_m_3282584026429926061_m_5264752297521101632_m_-7064375209309644506_SignatureSanitizer_SafeHtmlFilter_>
>>>
>>>
>>>
>>> On Tue, Jul 2, 2024 at 9:58 PM Nathan Hartman <hartman.nat...@gmail.com>
>>> wrote:
>>>
>>>> On Tue, Jul 2, 2024 at 11:23 AM Roshan Pardeshi <
>>>> roshan.parde...@ncdex.com> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> We require to delete the branches(folder and files) from SVN server to
>>>>> release some space from disk as we are facing space crunch on disk in SVN
>>>>> server.
>>>>>
>>>>> Please help on this as what command we should use to delete the
>>>>> branches(folder and files). We have used below command but its not working
>>>>>
>>>>> 1. svn delete branch name
>>>>> 2. svnadmin delete branch name
>>>>> 3. svn rm branch name
>>>>> 4.  svnadmin  rm branch name
>>>>> 5. del branch name
>>>>>
>>>>> Regards,
>>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> Please note that deleting a branch in Subversion does not remove the
>>>> information from your server, nor free any disk space. Since Subversion
>>>> always keeps historical information, the data will still be there, even if
>>>> it appears to be gone moving forward from the latest revision. It is always
>>>> possible to update to an older revision to make the deleted data reappear.
>>>> This is the purpose of version control.
>>>>
>>>> If you can tell us a little more about the Subversion server and the
>>>> repository, we can suggest possible steps you can take. Specifically:
>>>>
>>>> What version of Subversion is used on the server?
>>>>
>>>> How big is the repository?
>>>>
>>>> How many revisions in the repository?
>>>>
>>>> What format is the repository backend? (bdb or fsfs?)
>>>>
>>>> Thanks,
>>>> Nathan
>>>>
>>>>
>>>>
>> Experience *'tick-by-tick*' broadcast on NCDEX's NextGen trading
>> platform. *www.ncdex.com <http://www.ncdex.com/>*
>>
>> *Tweet: @ncdex, Facebook: TrustNCDEX, Youtube: NCDEX Ltd.*
>>
>> *Disclaimer:*
>>
>> *This email and any and all attachment/s hereto are intended solely for
>> the addressee/s, are strictly confidential and may be privileged. If you
>> are not the intended recipient, any reading, dissemination, copying or any
>> other use of this e-mail and the attachment/s is prohibited. If you have
>> received this email in error, please notify the sender immediately by email
>> and also permanently delete the email. Copyright reserved.*
>>
>> *All communications, incoming and outgoing, may be recorded and are
>> monitored for legitimate business purposes. NCDEX is not responsible for
>> any damage caused by virus or alteration of the e-mail or the accompanying
>> attachment/s by a third party or otherwise. NCDEX disclaims all liability
>> for any loss or damage whatsoever arising out of or resulting from the
>> receipt, use, transmission or interruption of this email. Any views or
>> opinions expressed in this email are those of the author only.*
>>
>

Regarding svnadmin dump with --include or --exclude (or svndumpfilter),
those do exist but I would prefer *not* to go that route unless absolutely
necessary.

I would prefer to investigate:

1) Whether 'svnadmin pack' has never been run for this repository (assuming
fsfs format). If so, this may be an opportunity for reducing disk space
usage.

2) Whether Representation Sharing (data deduplication) is active for this
repository. If not, then dumping and loading into a latest-format
repository with Representation Sharing enabled (the default is enabled) may
reduce disk space usage also.

There are additional tuning options that could reduce disk space usage a
bit more but the impact would likely be much smaller.

If, on the other hand, you absolutely want to delete data from the
repository so that it is removed from disk, as Daniel mentioned svnadmin
dump with --include or --exclude (or svndumpfilter) do exist. You can read
about them in the help text ('svnadmin help dump') and they are also
documented in the SVN book:

https://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering

WARNING: Please carefully read the *entire* section, especially the part
about the caveats and gotchas (the last three paragraphs in that section).
By filtering repository history, unless you carefully account for these
"gotchas" you could introduce problems that might not be discovered
immediately.

VERY IMPORTANT: Before attempting *anything*, be sure you have complete,
up-to-date, working *BACKUPS* of your full repository, and that you can
restore it successfully. I certainly hope you already have backups, and yes
this does mean that significant additional storage space is required.

Hope this helps,

Nathan

Reply via email to