From owner-freebsd-questions@FreeBSD.ORG Sun Apr 18 14:37:10 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 590201065672 for ; Sun, 18 Apr 2010 14:37:10 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 097128FC0A for ; Sun, 18 Apr 2010 14:37:09 +0000 (UTC) Received: by vws1 with SMTP id 1so491263vws.13 for ; Sun, 18 Apr 2010 07:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=2Sl18vhdhkESwptokSw+YS8zTy15351ERDbphkqNNOY=; b=Bj8tOyqj2ky3p3X8B0sSubPebsSvyCirjEZVGMHr2vskPCFCqtQ8P0r/1VkQ43K9Bb f3/7do5bVEKZ/IEu+c9Wj0sAT7bOnrYxsmTYZamBsTq0xCnAF8MeBHHZOiwxhAKfxxp1 oNxRS/PHgJCDTbm+fyt06vbvaLGhKq06MoIrw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=NsA2wX+6gkMVXSdeSQesU+ZonCU+oSxFsCBXc4v1N4qIfxO6axgWvextUGZmrPrCVy 1qhs6yH3QcoR9+m6ksQNnrkKhCXUM3evLI4/lcM4bSCtOi4wIGkVNMBDHcjzIAxGFpCv PHeJ/dg7XRzUgupnLQDmjI8Jsq2Ya03a6TCtk= Received: by 10.220.121.216 with SMTP id i24mr2690677vcr.235.1271601428422; Sun, 18 Apr 2010 07:37:08 -0700 (PDT) Received: from [192.168.6.250] ([201.21.146.140]) by mx.google.com with ESMTPS id z17sm13890517vco.17.2010.04.18.07.37.06 (version=SSLv3 cipher=RC4-MD5); Sun, 18 Apr 2010 07:37:07 -0700 (PDT) From: Sergio de Almeida Lenzi To: freebsd-questions In-Reply-To: <20100418161015.f20206f0.freebsd@edvax.de> References: <4BCB07C0.8010305@sbcglobal.net> <20100418161015.f20206f0.freebsd@edvax.de> Date: Sun, 18 Apr 2010 11:37:03 -0300 Message-ID: <1271601423.1287.15.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Backing up freebsd to 1 file? 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: Sun, 18 Apr 2010 14:37:10 -0000 I am very happy with the folowing.... Supose that you have mount ANOTHER device on /mnt.... 1) mount /dev/xxxx /mnt 2) init 1 (this closes all applications and drop into single user) 3) tar --one-file-system -cvzf /mnt/backup.tar.gz ./ var usr home 4) umount /mnt 5) exit (reboot from single user to normal operation) =================================== on restore....... supose you install a FBSD minimal from the CD/usb..... 1) mount /dev/xxxx /mnt 2) tar -xpvf /mnt/backup.tar.gz -C / ........................ 3) umount /mnt ===========you have restored your system============= may be some files (sockets...) are not restored but no problem as they will be created by the time your system boots on. Sergio