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

Re: Make a working copy from an export

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Sat, 18 Apr 2009 03:26:45 -0500

On Apr 16, 2009, at 11:27, Stephen Connolly wrote:

> 2009/4/16 Les Mikesell wrote:
>
>> Tony Sweeney wrote:
>>
>> > David Shere wrote:
>> >
>> >> I have an export of my repository which I wish to make into a
>> >> working copy.
>> >>
>> >> Here's my situation:
>> >> I use Subversion to manage my music library. I have a
>> >> working copy at home and at work, and sometimes check out
>> >> portions in other places. I recently deleted my working copy
>> >> at work and need to restore it. The server is hosted at
>> >> home, so when I check out at work, I'm depending on my upload
>> >> bandwidth at home, which is minimal. An export of the
>> >> library is 10GB, but a working copy is 21GB. I can bring an
>> >> export to work on my 16GB USB Flash drive, but the flash
>> >> drive is too small for a working copy. That's why I want to
>> >> put an export on my flash drive (at home), take it to work,
>> >> and then convert the export to a working copy.
>> >>
>> >> This hasn't been an issue in the past because each update at
>> >> work was only a handful of files, since I was adding music to
>> >> the repository one album at a time. Now that I have to check
>> >> out the entire library, it becomes a much more
>> >> bandwidth-hungry operation. I have seen some tutorials on
>> >> how to make an export from a working copy, but not the other
>> >> way around. I would make no changes to the export.
>> >>
>> >> I realize there are other ways to do this:
>> >> 1. Use the flash drive to copy half of the working copy one
>> >> day and the other half the next day 2. Run a series of
>> >> checkout/interrupt iterations at work.
>> >> I'm wondering if there's a tool in Subversion to do the work
>> for me.
>> >
>> > I'm not aware of any natively supported way.

You can turn an export into a working copy using the new --force switch:

svn co --force URL_OF_REPO PATH_TO_DIR

However, it will take the exact same amount of bandwidth to do this
as it would to create a fresh working copy, so this will not help
with the original problem.

>> > Probably the easiest
>> > solution is simply to buy a bigger USB stick or a portable USB hard
>> > drive. A 32 GB USB stick will run you $60-70 from Newegg; a 160GB
>> > external USB hard drive will run you $55-70 from the same
>> source. Note
>> > that there is quite a difference in speed between flash drives,
>> so you
>> > may want to do some research before you fork over your cash.
>>
>> You can get laptop-sized USB-powered external drives all the way
>> up to
>> 500Gb these days so portability isn't a huge problem. The quick-fix
>> here might be to simply zip or tar -z the working copy if that
>> will make
>> it fit, though.

Since the data is his music library, this is likely mp3 or m4a files
which are already compressed. Zip won't be able to compress them any
further.

> You could just zip the WC up, and then split the zip file into
> parts big enough to fit on your USB stick... it would take more
> than one trip, but you'd get there eventually (hopefully in 2 trips
> only too)

This suggestion should work nicely.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1786809

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-18 12:21:19 CEST

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