From owner-freebsd-questions@FreeBSD.ORG Mon Oct 3 19:05:30 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D809106566B for ; Mon, 3 Oct 2011 19:05:30 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 63AE08FC19 for ; Mon, 3 Oct 2011 19:05:30 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1RAnAX-0006mj-F3; Mon, 03 Oct 2011 14:23:19 -0400 Received: from v104.entropy.prv (v104.entropy.prv [192.168.1.104]) by cube.entropy.prv (Postfix) with ESMTP id 7A2AF535C031; Mon, 3 Oct 2011 14:25:56 -0400 (EDT) Message-ID: <4E89FE33.60101@FreeBSD.org> Date: Mon, 03 Oct 2011 14:25:55 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.23) Gecko/20110920 Lightning/1.0b2 Thunderbird/3.1.15 MIME-Version: 1.0 To: n dhert References: In-Reply-To: X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: freebsd-questions@freebsd.org Subject: Re: moving a svn repository X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 19:05:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/3/11 1:32 PM, n dhert wrote: > On a FreeBSD machine which the svn software installed, repositories for > different projects exist. > Such a repository looks as a directory with subdirs and files. > > One user wants the SVN repository of one project to be transferred to a > different machine (which had > exactly the same FreeBSD version and exactly the same version of the svn > software). > > Is it possible to simply make a tar file of the directory of the svn > repository, transfer that to the other machine > and there untar it in the home-directory that the user has on that other > machine and use it without further ado ? Hi n dhert, You said repository, but can you clarify if you meant a Subversion working directory or a Subversion repository? A working directory has a bunch of .svn directories throughout the hierarchy, and a repository has a directory structure that looks like this at the top level: README.txt conf/ db/ format hooks/ locks/ If you want to move a working directory to a new machine, I suggest committing pending changes in the original one, removing it from the old machine and then checking it out fresh on the new machine. If you want to move a repository, ask your user to commit pending changes, use the "svnadmin dump" command to create a dump file, then transfer it and use "svnadmin load" on the target machine. Also make sure to check if there are any hook scripts in the old repository and move them as well. They may depend on tools that are not installed or paths that don't exist on the new machine, so check that they function correctly. After the repository move, the user can run "svn switch --relocate" in his working directory to point to the new repository URL. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6J/jMACgkQ0sRouByUApBUVwCffLm7F4uhjmAk90323ZyJXtmH tlsAn0kmx7u7qFGNJ4nQRHaUbGGxm7vL =BkAH -----END PGP SIGNATURE-----