From owner-freebsd-questions@FreeBSD.ORG Tue Oct 24 22:41:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1248116A412 for ; Tue, 24 Oct 2006 22:41:26 +0000 (UTC) (envelope-from james@pil.net) Received: from richard2.pil.net (mail.pil.net [207.7.198.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 8D5E343D45 for ; Tue, 24 Oct 2006 22:41:25 +0000 (GMT) (envelope-from james@pil.net) Received: (qmail 49240 invoked by uid 1001); 24 Oct 2006 22:41:25 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 24 Oct 2006 22:41:25 -0000 Date: Tue, 24 Oct 2006 18:41:25 -0400 (EDT) From: James Smallacombe To: Eric In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: Copying binaries to new server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2006 22:41:26 -0000 On Tue, 24 Oct 2006, James Smallacombe wrote: > On Tue, 24 Oct 2006, Eric wrote: > > > James Smallacombe wrote: > > > On Tue, 24 Oct 2006, Jerry McAllister wrote: > > >> True, but I think the poster was suggesting that dump/restore is > > >> a better way than using tar. > > > > > > I'm not as familiar with BSD dump...does it compress well? Also, what's this? > > > > Take a dump > > dump -0uanLf - /var | bzip2 | dd of=/some/path/dump-var-level0.bz2 > > dump -0uanLf - / | bzip2 | dd of=/some/path/dump-root-level0.bz2 > > dump -0uanLf - /usr | bzip2 | dd of=/some/path/dump-usr-level0.bz2 > > > > Restore a dump > > To Restore Interactively > > Thanks, this seems to be doing the trick. However, I am getting a ton of > these upon restoring the contents of /usr on the new server: > > warning: cannot create symbolic link > ./src/sys/i386/compile/NEW_NS1.SMP/modules/usr/src/sys/modules/if_ppp/machine->/usr/src/sys/i386/include: > File exists > > Is it just that the symlinks already exist on the new server and it won't > overwrite them the way they overwrite regular files? Ugh...my ssh session to the new (remote) server was killed, presumably when restore overwrote something sshd needed. I was able to telnet back in, restart sshd and get back in, but since I was doing the restore interactively, and not in the background, was the restore interrupted? This is the problem with trying to copy a /usr or / file system to a live system... James Smallacombe Internet Access for The Delaware james@pil.net Valley in PA, NJ and DE PlantageNet Internet Ltd. http://www.pil.net =========================================================================