[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn archive (or lsdblog etc.)

From: Max Bowsher <maxb_at_ukf.net>
Date: 2003-09-06 12:06:20 CEST

Sindbad the Seafarer wrote:
> Hi all out there!
>
> I have the same or similar problem with What to do with the log files and
svn
> archive/lsdblogs/etc. The help file example does not say anything
practical to
> me except listing all unused logs. But how can I deal with them under
> Win2000? E.g. move them to a ZIP file or another folder or delete them?
Have I
> to print the list and then move them manually, file by file? I tried to
pipe
> svn archive output to move and copy command, but with no success.
>
> $ svnadmin archive /path/to/repos | xargs rm
> ## disk space reclaimed!
>
> What is xargs? Is it a common Unix command? Is it SVN parameters?
> W2K says unknown command.

xargs is a common Unix command, as is rm.

You could probably do something similar with the "Command Extensions" of
cmd.exe

Type "help for" at a cmd.exe prompt. You will probably be able to put
together a command a bit like this UNTESTED UNTESTED UNTESTED example:
for /F "delims=" %i IN ('svnadmin list-unused-dblogs repos') DO del %i

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 6 12:07:13 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.