Parmently removing directory from server to make space

2013-03-26 Thread Anil Bakshi
Hi Team,

 

We have configured the subversion on window system and using it since
last year.

 

Now our server is out of space and we decide to permanently remove few
projects from server. We will keep these project in DVDs.

 

I searched for this on web but not able to found any fruitful answer. I
tried svn dump and svndumpfilter.

 

Please help me with how I can permanently remove directory from server.
I don't want to keep any revision or history of those directories.

 

These directories have multiple level of sub-directories and files. I
want to remove all.

 

Folder structure:

Database/E_Learning/Development/Project_1

Database/E_Learning/Development/Project_2

Database/E_Learning/Development/Project_3

Database/E_Learning/Development/Project_4

Database/E_Learning/Development/Project_5

Database/E_Learning/Development/Project_6

 

I want to delete Project 1 and 2.

 

Subversion details: Setup-Subversion-1.6.6

Configured on: Window XP

Apache: Version 2.0

 

 

Regards,

Anil Kumar Bakshi

Sr. Multimedia Programmer | Education and Learning

 

Aptara, Inc. | Transforming Content into Knowledge

anil.bak...@aptaracorp.com   |
aptaracorp.com  

A-28, Mohan Cooperative Industrial Estate, 

Mathura Road | New Delhi - 110044 | India

Mobile +91 9818907948

 



RE: Parmently removing directory from server to make space

2013-03-26 Thread Grierson, David
You need to dump, filter and load your repositories to remove the directories 
you want rid of ...

If your server is out of space you will likely run into issues though because 
the act of loading needs to be performed into a new repository which will 
result in you (temporarily) increasing your disk usage before you can remove 
the old repository.

Anyway the process would be something like:
# create the target repository
svnadmin create /path/to/new-repository

# dump the old repository, filter OUT the paths you want excluded & load them 
to the new repo
svnadmin dump /path/to/old-repository | \
 svndumpfilter --drop-empty-revs --renumber-revs exclude \
  Database/E_Learning/Development/Project_1
  Database/E_Learning/Development/Project_2 | \
svnadmin load /path/to/new-repository

Obviously YMMV and you should always test any advice provided on an open 
mailing list prior to applying to a production environment.

Dg.

--
David Grierson<http://amsdatapp244.bskyb.com:8080/display/~DGR02/> - Tools 
Specialist
Sky Broadcasting - Customer Business Systems - SDLC Tools
Tel: +44 1506 325100 / Email: 
david.grier...@bskyb.com<mailto:david.grier...@bskyb.com> / Chatter: CBS SDLC 
Tools<https://bskyb.my.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F920008Z8b>
Watermark Building, Alba Campus, Livingston, EH54 7HH


From: Anil Bakshi [mailto:anil.bak...@aptaracorp.com]
Sent: 26 March 2013 07:25
To: users@subversion.apache.org
Subject: Parmently removing directory from server to make space

Hi Team,

We have configured the subversion on window system and using it since last year.

Now our server is out of space and we decide to permanently remove few projects 
from server. We will keep these project in DVDs.

I searched for this on web but not able to found any fruitful answer. I tried 
svn dump and svndumpfilter.

Please help me with how I can permanently remove directory from server. I don't 
want to keep any revision or history of those directories.

These directories have multiple level of sub-directories and files. I want to 
remove all.

Folder structure:
Database/E_Learning/Development/Project_1
Database/E_Learning/Development/Project_2
Database/E_Learning/Development/Project_3
Database/E_Learning/Development/Project_4
Database/E_Learning/Development/Project_5
Database/E_Learning/Development/Project_6

I want to delete Project 1 and 2.

Subversion details: Setup-Subversion-1.6.6
Configured on: Window XP
Apache: Version 2.0


Regards,
Anil Kumar Bakshi
Sr. Multimedia Programmer | Education and Learning

Aptara, Inc. | Transforming Content into Knowledge
anil.bak...@aptaracorp.com<mailto:anil.bak...@aptaracorp.com> | 
aptaracorp.com<http://www.aptaracorp.com/>
A-28, Mohan Cooperative Industrial Estate,
Mathura Road | New Delhi - 110044 | India
Mobile +91 9818907948



Information in this email including any attachments may be privileged, 
confidential and is intended exclusively for the addressee. The views expressed 
may not be official policy, but the personal views of the originator. If you 
have received it in error, please notify the sender by return e-mail and delete 
it from your system. You should not reproduce, distribute, store, retransmit, 
use or disclose its contents to anyone. Please note we reserve the right to 
monitor all e-mail communication through our internal and external networks. 
SKY and the SKY marks are trade marks of British Sky Broadcasting Group plc and 
are used under licence. British Sky Broadcasting Limited (Registration No. 
2906991), Sky Interactive Limited (Registration No. 3554332), Sky-In-Home 
Service Limited (Registration No. 2067075) and Sky Subscribers Services Limited 
(Registration No. 2340150) are direct or indirect subsidiaries of British Sky 
Broadcasting Group plc (Registration No. 2247735). All of the companies 
mentioned in this paragraph are incorporated in England and Wales and share the 
same registered office at Grant Way, Isleworth, Middlesex TW7 5QD.



RE: Parmently removing directory from server to make space

2013-03-26 Thread Anil Bakshi
Thanks David,

 

I tried the svndumpfilter with exclude command.

 

Example: svndumpfilter exclude \database\E_Learning\Development\Project1
< repo.dump > filteredDump.dump

 

It takes 1-2 hours. But after that  repo.dump and filteredDump.dump have
the same size. Both shows 86 GB.

 

It will be great if can help me on this.

 

I agree with you on testing advice first before implementing it. But
sometimes even genius do silly mistakes. J

 

 

 

Regards,

Anil Kumar Bakshi

Sr. Multimedia Programmer | Education and Learning

 

Aptara, Inc. | Transforming Content into Knowledge

anil.bak...@aptaracorp.com <mailto:anil.bak...@aptaracorp.com>  |
aptaracorp.com <http://www.aptaracorp.com/> 

A-28, Mohan Cooperative Industrial Estate, 

Mathura Road | New Delhi - 110044 | India

Mobile +91 9818907948

 

From: Grierson, David [mailto:david.grier...@bskyb.com] 
Sent: Tuesday, March 26, 2013 3:34 PM
To: Anil Bakshi; users@subversion.apache.org
Subject: RE: Parmently removing directory from server to make space

 

You need to dump, filter and load your repositories to remove the
directories you want rid of ...

 

If your server is out of space you will likely run into issues though
because the act of loading needs to be performed into a new repository
which will result in you (temporarily) increasing your disk usage before
you can remove the old repository.

 

Anyway the process would be something like:

# create the target repository

svnadmin create /path/to/new-repository

 

# dump the old repository, filter OUT the paths you want excluded & load
them to the new repo

svnadmin dump /path/to/old-repository | \

 svndumpfilter --drop-empty-revs --renumber-revs exclude \

  Database/E_Learning/Development/Project_1

  Database/E_Learning/Development/Project_2 | \

svnadmin load /path/to/new-repository

 

Obviously YMMV and you should always test any advice provided on an open
mailing list prior to applying to a production environment.

 

Dg.



--
David Grierson <http://amsdatapp244.bskyb.com:8080/display/~DGR02/>  -
Tools Specialist 

Sky Broadcasting - Customer Business Systems - SDLC Tools

Tel: +44 1506 325100 / Email: david.grier...@bskyb.com / Chatter: CBS
SDLC Tools
<https://bskyb.my.salesforce.com/_ui/core/chatter/groups/GroupProfilePag
e?g=0F920008Z8b> 

Watermark Building, Alba Campus, Livingston, EH54 7HH

 

 

From: Anil Bakshi [mailto:anil.bak...@aptaracorp.com] 
Sent: 26 March 2013 07:25
To: users@subversion.apache.org
Subject: Parmently removing directory from server to make space

 

Hi Team,

 

We have configured the subversion on window system and using it since
last year.

 

Now our server is out of space and we decide to permanently remove few
projects from server. We will keep these project in DVDs.

 

I searched for this on web but not able to found any fruitful answer. I
tried svn dump and svndumpfilter.

 

Please help me with how I can permanently remove directory from server.
I don't want to keep any revision or history of those directories.

 

These directories have multiple level of sub-directories and files. I
want to remove all.

 

Folder structure:

Database/E_Learning/Development/Project_1

Database/E_Learning/Development/Project_2

Database/E_Learning/Development/Project_3

Database/E_Learning/Development/Project_4

Database/E_Learning/Development/Project_5

Database/E_Learning/Development/Project_6

 

I want to delete Project 1 and 2.

 

Subversion details: Setup-Subversion-1.6.6

Configured on: Window XP

Apache: Version 2.0

 

 

Regards,

Anil Kumar Bakshi

Sr. Multimedia Programmer | Education and Learning

 

Aptara, Inc. | Transforming Content into Knowledge

anil.bak...@aptaracorp.com <mailto:anil.bak...@aptaracorp.com>  |
aptaracorp.com <http://www.aptaracorp.com/> 

A-28, Mohan Cooperative Industrial Estate, 

Mathura Road | New Delhi - 110044 | India

Mobile +91 9818907948

 


Information in this email including any attachments may be privileged,
confidential and is intended exclusively for the addressee. The views
expressed may not be official policy, but the personal views of the
originator. If you have received it in error, please notify the sender
by return e-mail and delete it from your system. You should not
reproduce, distribute, store, retransmit, use or disclose its contents
to anyone. Please note we reserve the right to monitor all e-mail
communication through our internal and external networks. SKY and the
SKY marks are trade marks of British Sky Broadcasting Group plc and are
used under licence. British Sky Broadcasting Limited (Registration No.
2906991), Sky Interactive Limited (Registration No. 3554332),
Sky-In-Home Service Limited (Registration No. 2067075) and Sky
Subscribers Services Limited (Registration No. 2340150) are direct or
indirect subsidiaries of British Sky Broadcasting Group plc
(Registration No. 2247735). A

Re: Parmently removing directory from server to make space

2013-03-26 Thread Stefan Sperling
On Tue, Mar 26, 2013 at 03:53:11PM +0530, Anil Bakshi wrote:
> Thanks David,
> 
>  
> 
> I tried the svndumpfilter with exclude command.
> 
>  
> 
> Example: svndumpfilter exclude \database\E_Learning\Development\Project1
> < repo.dump > filteredDump.dump

Paths in Subversion reposiories use forward slashes, not backslashes.
Try this: svndumpfilter exclude /database/E_Learning/Development/Project1
  < repo.dump > filteredDump.dump


Re: Parmently removing directory from server to make space

2013-03-26 Thread Ryan Schmidt

On Mar 26, 2013, at 02:25, Anil Bakshi wrote:

> Now our server is out of space and we decide to permanently remove few 
> projects from server.

If your projects are in individual repositories, this is easy: archive these 
old projects' repositories to DVD, ideally in a future-proof format like a 
dumpfile, along with any special repository configuration files or hook 
scripts, then delete the repositories from the server. But if all your projects 
are in a single massive repository, then this is difficult.

Permanently removing some repository contents is an oft-requested feature, but 
it is difficult to do at present, partly because it goes against the primary 
purpose of Subversion, which is to keep a complete and unaltered history of 
your changes.

Understand that if you do manage to dump, filter, and load the parts of your 
old repository that you want to keep into a new repository, the new repository 
will (must) have a new UUID, meaning all existing working copies that your 
developers might have will need to be thrown away and new working copies 
checked out. Your developers need to either check in all their work before you 
perform this repository surgery, or will have to manually move their 
uncommitted work from their old working copies to new ones. If you have many 
developers, this can add up to a lot of inconvenience and a lot of wasted 
developer time.

Consider whether it would be a more effective use of time and money to purchase 
additional storage space for the server. Hard drives are pretty cheap compared 
with the cost of developer time. You can use symlinks of individual revision 
files to allow a large repository to span more than one disk if necessary.

Also consider whether new projects could be started as individual repositories 
from now on, instead of going into the single monolithic repository, to make 
these kinds of cleanup operations easier in the future. If you're doing 
repository surgery now, you could also think about splitting each project into 
its own repository now, so that you hopefully won't ever have to do this again.





RE: Parmently removing directory from server to make space

2013-03-26 Thread Anil Bakshi
Thanks Stefan, I will try with forward slashes. One more thing.

In httpd.conf file. I have set the below variable.

SVNParentPath C:\SVNData\svn

So repo browser path is:
http://delhicvs.ind.aptaracorp.com:8080/svn/database/E_Learning/Developm
ent/Project1 

Do I using the correct path in below example.

svndumpfilter exclude /database/E_Learning/Development/Project1  <
repo.dump > filteredDump.dump


Regards,
Anil Kumar Bakshi
Sr. Multimedia Programmer | Education and Learning

 

Aptara, Inc. | Transforming Content into Knowledge

anil.bak...@aptaracorp.com | aptaracorp.com

A-28, Mohan Cooperative Industrial Estate, 

Mathura Road | New Delhi - 110044 | India

Mobile +91 9818907948

 

-Original Message-
From: Stefan Sperling [mailto:s...@elego.de] 
Sent: Tuesday, March 26, 2013 3:57 PM
To: Anil Bakshi
Cc: Grierson, David; users@subversion.apache.org
Subject: Re: Parmently removing directory from server to make space

On Tue, Mar 26, 2013 at 03:53:11PM +0530, Anil Bakshi wrote:
> Thanks David,
> 
>  
> 
> I tried the svndumpfilter with exclude command.
> 
>  
> 
> Example: svndumpfilter exclude
\database\E_Learning\Development\Project1
> < repo.dump > filteredDump.dump

Paths in Subversion reposiories use forward slashes, not backslashes.
Try this: svndumpfilter exclude
/database/E_Learning/Development/Project1
  < repo.dump > filteredDump.dump


RE: Parmently removing directory from server to make space

2013-03-26 Thread Anil Bakshi
Thanks Ryan,

Your suggestions are really eye opener for me. I will follow the
separate repository for each project.

But now I am stuck.  

Regards,
Anil Kumar Bakshi
Sr. Multimedia Programmer | Education and Learning

Aptara, Inc. | Transforming Content into Knowledge
anil.bak...@aptaracorp.com | aptaracorp.com
A-28, Mohan Cooperative Industrial Estate, 
Mathura Road | New Delhi - 110044 | India
Mobile +91 9818907948

 


-Original Message-
From: Ryan Schmidt [mailto:subversion-20...@ryandesign.com] 
Sent: Tuesday, March 26, 2013 4:05 PM
To: Anil Bakshi
Cc: users@subversion.apache.org
Subject: Re: Parmently removing directory from server to make space


On Mar 26, 2013, at 02:25, Anil Bakshi wrote:

> Now our server is out of space and we decide to permanently remove few
projects from server.

If your projects are in individual repositories, this is easy: archive
these old projects' repositories to DVD, ideally in a future-proof
format like a dumpfile, along with any special repository configuration
files or hook scripts, then delete the repositories from the server. But
if all your projects are in a single massive repository, then this is
difficult.

Permanently removing some repository contents is an oft-requested
feature, but it is difficult to do at present, partly because it goes
against the primary purpose of Subversion, which is to keep a complete
and unaltered history of your changes.

Understand that if you do manage to dump, filter, and load the parts of
your old repository that you want to keep into a new repository, the new
repository will (must) have a new UUID, meaning all existing working
copies that your developers might have will need to be thrown away and
new working copies checked out. Your developers need to either check in
all their work before you perform this repository surgery, or will have
to manually move their uncommitted work from their old working copies to
new ones. If you have many developers, this can add up to a lot of
inconvenience and a lot of wasted developer time.

Consider whether it would be a more effective use of time and money to
purchase additional storage space for the server. Hard drives are pretty
cheap compared with the cost of developer time. You can use symlinks of
individual revision files to allow a large repository to span more than
one disk if necessary.

Also consider whether new projects could be started as individual
repositories from now on, instead of going into the single monolithic
repository, to make these kinds of cleanup operations easier in the
future. If you're doing repository surgery now, you could also think
about splitting each project into its own repository now, so that you
hopefully won't ever have to do this again.





Re: Parmently removing directory from server to make space

2013-03-26 Thread Stefan Sperling
On Tue, Mar 26, 2013 at 04:14:38PM +0530, Anil Bakshi wrote:
> Thanks Stefan, I will try with forward slashes. One more thing.
> 
> In httpd.conf file. I have set the below variable.
> 
> SVNParentPath C:\SVNData\svn
> 
> So repo browser path is:
> http://delhicvs.ind.aptaracorp.com:8080/svn/database/E_Learning/Developm
> ent/Project1 
> 
> Do I using the correct path in below example.
> 
> svndumpfilter exclude /database/E_Learning/Development/Project1  <
> repo.dump > filteredDump.dump

I cannot tell exactly because you haven't provided the 
tatements of your httpd config that contains the SVNParentPath
directive.

Assuming you are using , it seems the name of your
repository is 'database'.

Dump files contain only paths which are *inside* the repository,
i.e. paths shown by a command such as:
  svn ls http://delhicvs.ind.aptaracorp.com:8080/svn/database

It seems E_Learning is a directory in the root directory of the
repository, so filtering the dump file should probably look like this:

svndumpfilter exclude /E_Learning/Development/Project1  < repo.dump > 
filteredDump.dump

However, if you were using  or  the paths inside the dump file would be
different.

If you don't really understand how this all works, I suggest that
you create a small repository to test with and try out some commands
until you understand their behaviour, and then tackle the time intensive
task of filtering large dump files.

This section of the book might also be useful:
http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering


RE: Parmently removing directory from server to make space

2013-03-26 Thread Anil Bakshi
Thanks Stafen,

You are really helping.

I think you are taking about this:


DAV svn
SVNParentPath C:\SVNData\svn
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile C:\SVNData\svn.pass
AuthzSVNAccessFile C:\SVNData\authz.conf
Require valid-user


So I will go with your suggestion: svndumpfilter exclude
/E_Learning/Development/Project1  < repo.dump > filteredDump.dump

Please correct me. 

Regards,

Anil Kumar Bakshi

Sr. Multimedia Programmer | Education and Learning

 

Aptara, Inc. | Transforming Content into Knowledge

anil.bak...@aptaracorp.com | aptaracorp.com

A-28, Mohan Cooperative Industrial Estate, 

Mathura Road | New Delhi - 110044 | India

Mobile +91 9818907948

 


-Original Message-
From: Stefan Sperling [mailto:s...@elego.de] 
Sent: Tuesday, March 26, 2013 4:29 PM
To: Anil Bakshi
Cc: Grierson, David; users@subversion.apache.org
Subject: Re: Parmently removing directory from server to make space

On Tue, Mar 26, 2013 at 04:14:38PM +0530, Anil Bakshi wrote:
> Thanks Stefan, I will try with forward slashes. One more thing.
> 
> In httpd.conf file. I have set the below variable.
> 
> SVNParentPath C:\SVNData\svn
> 
> So repo browser path is:
> http://delhicvs.ind.aptaracorp.com:8080/svn/database/E_Learning/Develo
> pm
> ent/Project1
> 
> Do I using the correct path in below example.
> 
> svndumpfilter exclude /database/E_Learning/Development/Project1  < 
> repo.dump > filteredDump.dump

I cannot tell exactly because you haven't provided the 
tatements of your httpd config that contains the SVNParentPath
directive.

Assuming you are using , it seems the name of your
repository is 'database'.

Dump files contain only paths which are *inside* the repository, i.e.
paths shown by a command such as:
  svn ls http://delhicvs.ind.aptaracorp.com:8080/svn/database

It seems E_Learning is a directory in the root directory of the
repository, so filtering the dump file should probably look like this:

svndumpfilter exclude /E_Learning/Development/Project1  < repo.dump >
filteredDump.dump

However, if you were using  or  the paths inside the dump file would be
different.

If you don't really understand how this all works, I suggest that you
create a small repository to test with and try out some commands until
you understand their behaviour, and then tackle the time intensive task
of filtering large dump files.

This section of the book might also be useful:
http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposad
min.maint.filtering


Re: Parmently removing directory from server to make space

2013-03-26 Thread Daniel Shahaf
Anil Bakshi wrote on Tue, Mar 26, 2013 at 16:37:25 +0530:
> So I will go with your suggestion: svndumpfilter exclude
> /E_Learning/Development/Project1  < repo.dump > filteredDump.dump
> 
> Please correct me. 

You might try this command:

% grep -a '^Node-path:' < repo.dump | head

to see what paths inside the dump file look like.

.oO ( maybe we should have an 'svndumpfilter info' command?  I suppose
it could basically cat the dumpfile, except: file reps would be omitted;
dir reps would be omitted (unless we figure out something sensible to
dowith them, eg "5 children"); properties would be omitted (but in the
future we could list propnames or propnames and propvalues). )


Re: Parmently removing directory from server to make space

2013-03-26 Thread Les Mikesell
On Tue, Mar 26, 2013 at 6:25 AM, Daniel Shahaf  wrote:
> Anil Bakshi wrote on Tue, Mar 26, 2013 at 16:37:25 +0530:
>> So I will go with your suggestion: svndumpfilter exclude
>> /E_Learning/Development/Project1  < repo.dump > filteredDump.dump
>>
>> Please correct me.
>
> You might try this command:
>
> % grep -a '^Node-path:' < repo.dump | head
>
> to see what paths inside the dump file look like.
>
> .oO ( maybe we should have an 'svndumpfilter info' command?  I suppose
> it could basically cat the dumpfile, except: file reps would be omitted;
> dir reps would be omitted (unless we figure out something sensible to
> dowith them, eg "5 children"); properties would be omitted (but in the
> future we could list propnames or propnames and propvalues). )

If you want to change things, it would be nice to be able to give
svndumpfilter a bunch of paths where projects start and have it split
them into separate files in one pass  - and to do something useful
when a project was originally imported into the wrong location and
them moved to the correct path.

And perhaps mention the difficulty of this process in the beginning of
the documentation/overview to discourage putting more than one project
in a repo in the first place.


-- 
   Les Mikesell
  lesmikes...@gmail.com


RE: Parmently removing directory from server to make space

2013-03-26 Thread Anil Bakshi
Thanks Stefan,

Finally I am able to see the difference in size of filtered dump file.

You really helped me lot. Thanks again.

Regards,

Anil Kumar Bakshi

Sr. Multimedia Programmer | Education and Learning

 

Aptara, Inc. | Transforming Content into Knowledge

anil.bak...@aptaracorp.com | aptaracorp.com

A-28, Mohan Cooperative Industrial Estate, 

Mathura Road | New Delhi - 110044 | India

Mobile +91 9818907948

 


-Original Message-
From: Stefan Sperling [mailto:s...@elego.de] 
Sent: Tuesday, March 26, 2013 4:29 PM
To: Anil Bakshi
Cc: Grierson, David; users@subversion.apache.org
Subject: Re: Parmently removing directory from server to make space

On Tue, Mar 26, 2013 at 04:14:38PM +0530, Anil Bakshi wrote:
> Thanks Stefan, I will try with forward slashes. One more thing.
> 
> In httpd.conf file. I have set the below variable.
> 
> SVNParentPath C:\SVNData\svn
> 
> So repo browser path is:
> http://delhicvs.ind.aptaracorp.com:8080/svn/database/E_Learning/Develo
> pm
> ent/Project1
> 
> Do I using the correct path in below example.
> 
> svndumpfilter exclude /database/E_Learning/Development/Project1  < 
> repo.dump > filteredDump.dump

I cannot tell exactly because you haven't provided the 
tatements of your httpd config that contains the SVNParentPath
directive.

Assuming you are using , it seems the name of your
repository is 'database'.

Dump files contain only paths which are *inside* the repository, i.e.
paths shown by a command such as:
  svn ls http://delhicvs.ind.aptaracorp.com:8080/svn/database

It seems E_Learning is a directory in the root directory of the
repository, so filtering the dump file should probably look like this:

svndumpfilter exclude /E_Learning/Development/Project1  < repo.dump >
filteredDump.dump

However, if you were using  or  the paths inside the dump file would be
different.

If you don't really understand how this all works, I suggest that you
create a small repository to test with and try out some commands until
you understand their behaviour, and then tackle the time intensive task
of filtering large dump files.

This section of the book might also be useful:
http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposad
min.maint.filtering


Re: Parmently removing directory from server to make space

2013-03-26 Thread olli hauer
On 2013-03-26 12:25, Daniel Shahaf wrote:
> Anil Bakshi wrote on Tue, Mar 26, 2013 at 16:37:25 +0530:
>> So I will go with your suggestion: svndumpfilter exclude
>> /E_Learning/Development/Project1  < repo.dump > filteredDump.dump
>>
>> Please correct me. 
> 
> You might try this command:
> 
> % grep -a '^Node-path:' < repo.dump | head
> 
> to see what paths inside the dump file look like.
> 
> .oO ( maybe we should have an 'svndumpfilter info' command?  I suppose
> it could basically cat the dumpfile, except: file reps would be omitted;
> dir reps would be omitted (unless we figure out something sensible to
> dowith them, eg "5 children"); properties would be omitted (but in the
> future we could list propnames or propnames and propvalues). )
> 


Here the script normalize-dump.py (in the svn tar file) comes is really
handy. From my own experience with big dumps it is ways faster to process
the dump with this script and then grep for Node-path/Node-copyfrom-path.


Additional hint for Windows users:
 run svndumpfilter this way: python -u $path/svndumpfilter.py


RE: Parmently removing directory from server to make space

2013-04-03 Thread Anil Bakshi
Hi Olli,

Thnaks for your support.

I ran into one small issue.

I need to know the folder structure of my dump file. Is their any
command to know that.

For example, my root directory is /E_Learning/Development/

I need to know the folder structure inside Development folder.

I cannot check it through tortoiseSVN because I have deleted few folders
from their and I need to know those deleted folders name.

Regards,
Anil Kumar Bakshi
Sr. Multimedia Programmer | Education and Learning

 

Aptara, Inc. | Transforming Content into Knowledge

anil.bak...@aptaracorp.com | aptaracorp.com

A-28, Mohan Cooperative Industrial Estate, 

Mathura Road | New Delhi - 110044 | India

Mobile +91 9818907948

 

-Original Message-
From: olli hauer [mailto:oha...@gmx.de] 
Sent: Tuesday, March 26, 2013 9:31 PM
To: Daniel Shahaf; users@subversion.apache.org
Cc: Anil Bakshi; Stefan Sperling; Grierson, David
Subject: Re: Parmently removing directory from server to make space

On 2013-03-26 12:25, Daniel Shahaf wrote:
> Anil Bakshi wrote on Tue, Mar 26, 2013 at 16:37:25 +0530:
>> So I will go with your suggestion: svndumpfilter exclude
>> /E_Learning/Development/Project1  < repo.dump > filteredDump.dump
>>
>> Please correct me. 
> 
> You might try this command:
> 
> % grep -a '^Node-path:' < repo.dump | head
> 
> to see what paths inside the dump file look like.
> 
> .oO ( maybe we should have an 'svndumpfilter info' command?  I suppose

> it could basically cat the dumpfile, except: file reps would be 
> omitted; dir reps would be omitted (unless we figure out something 
> sensible to dowith them, eg "5 children"); properties would be omitted

> (but in the future we could list propnames or propnames and 
> propvalues). )
> 


Here the script normalize-dump.py (in the svn tar file) comes is really
handy. From my own experience with big dumps it is ways faster to
process the dump with this script and then grep for
Node-path/Node-copyfrom-path.


Additional hint for Windows users:
 run svndumpfilter this way: python -u $path/svndumpfilter.py


Re: Parmently removing directory from server to make space

2013-04-03 Thread Thorsten Schöning
Guten Tag Anil Bakshi,
am Donnerstag, 4. April 2013 um 07:57 schrieben Sie:

> For example, my root directory is /E_Learning/Development/

> I need to know the folder structure inside Development folder.

> I cannot check it through tortoiseSVN because I have deleted few folders
> from their and I need to know those deleted folders name.

What do you mean by "deleted", using Subversion or svndumpfilter on
a dump/reload cycle?In the first case just look in the history for the
commits where the folders have been deleted, in the latter case there
is no possibility anymore because the repo didn't ever contain the
folders. But that's what one wanted by using svndumpfilter. ;-)

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail:thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow