From owner-freebsd-questions@FreeBSD.ORG Thu Dec 6 16:02:01 2007 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 972F116A473 for ; Thu, 6 Dec 2007 16:02:01 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id 6545413C447 for ; Thu, 6 Dec 2007 16:02:00 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so642346pyb for ; Thu, 06 Dec 2007 08:01:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=ERNlAX5dZXgBVTjjI8FNuTCEk59t3P/i8tPBGLthEIA=; b=pot99wAz2/9esHhJB3BK0Ss2zdl6QWS6YWn4VATyveWwUMhn4uXOHtSi+cmHGJvLQIWy0dbaP/tlfDKAdUolGbXfVhw0sr/TqzYIg/QdKyyH1T/zQQkZfsij0ZUUOzFv07zNW09+/1doPBXkzQcxmhyKJFA856Evln1/mDuHKTE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=OYgOAvcx/rZIPkYV0ML99feL5hagvArABDivDIWYhnSjdwi81+D9+zpwmty4XlaJ5NO7Jzyhqy24XWX1U5xje0mMNdI2/U6JHuKHE3187XwxqfoTk8kIvSh3iQjLhVCOg0zuP4+uVrhm5sG45PMX+h6mh3tuCTEnJGmSEXFsmIk= Received: by 10.35.30.8 with SMTP id h8mr2172798pyj.1196956912870; Thu, 06 Dec 2007 08:01:52 -0800 (PST) Received: from swordfish.local.claimlynx.com ( [74.95.66.25]) by mx.google.com with ESMTPS id f10sm2925443pyh.2007.12.06.08.01.49 (version=SSLv3 cipher=OTHER); Thu, 06 Dec 2007 08:01:51 -0800 (PST) Message-Id: <985805C2-2026-4705-9D21-EA31FB9CF65F@gmail.com> From: Eric Crist To: Konstantinos Pachnis In-Reply-To: <47580BC8.6050205@freemail.gr> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Thu, 6 Dec 2007 10:01:47 -0600 References: <539c60b90712041638s78b4e40fn67434f2dce5e27e7@mail.gmail.com> <20071205154148.GB21074@gizmo.acns.msu.edu> <1196874620.32615.15.camel@p25dual1.lanl.gov> <47580BC8.6050205@freemail.gr> X-Mailer: Apple Mail (2.915) Cc: Jerry McAllister , jamesh@lanl.gov, Steve Franks , User Questions Subject: Re: copying just / (not /tmp, /usr, etc) (rsync -x failed) 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: Thu, 06 Dec 2007 16:02:01 -0000 On Dec 6, 2007, at 8:48 AM, Konstantinos Pachnis wrote: > James Harrison wrote: >> On Wed, 2007-12-05 at 10:41 -0500, Jerry McAllister wrote: >> >>> On Tue, Dec 04, 2007 at 05:38:20PM -0700, Steve Franks wrote: >>> >>> >>>> I have / on one slice, and [usr,tmp,var] on others. I want to move >>>> just / to a new disk, which seemed to be what rsync -x ("do not >>>> cross >>>> filesystems") was intended for. It failed, however, as df shows >>>> 20k >>>> blocks in /, and rsync filled up the target slice with 50k >>>> blocks, so >>>> obviously it blew right past the 'end' of / - did I miss >>>> something? Is >>>> there no other way except to umount [tmp,usr,var]? >>>> >>> I would use dump/restore. >>> >>> Build the filesystem in the new disk partition with fdisk, bsdlabel >>> and newfs as needed. Then mount the new partition somewhere - >>> example: >>> mkdir /newpart >>> mount /dev/ad1s1a /newpart >>> (presuming new disk is ad1, slice is 1, partition is a) >>> Doesn't hurt to do an fsck on it here before writing to it, but it >>> probably isn't really needed. >>> >>> Then, run the dump/restore >>> >>> cd /newpart >>> dump 0af - / | restore -rf - >>> >>> This will get all of / as you want. The other mountpoints for / >>> tmp, /usr >>> and /var will be copied, but not the contents of those >>> filesystems. You >>> probably want that. >>> >>> ////jerry >>> >>> >>>> Thanks, >>>> Steve >>>> >> >> Everyone's recommending dump/restore for copying file systems, and >> there's something that I've never really been clear on. >> >> The nice thing about rsync is that it's network aware. Can dump >> dump a >> file system across a network? >> >> James >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org >> " >> >> > Hi, > If you want to perform network backups, you should consider using a > network aware backup solution such as Bacula or Amanda. > > Konstantinos We do this little trick when we're moving an OS to a new system, and don't want to reinstall: https://www.secure-computing.net/wiki/index.php/Dump_Over_SSH HTH ----- Eric F Crist Secure Computing Networks