From owner-freebsd-questions@FreeBSD.ORG Thu Oct 15 03:51:24 2009 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 294101065676 for ; Thu, 15 Oct 2009 03:51:24 +0000 (UTC) (envelope-from lordofhyphens@gmail.com) Received: from mail-gx0-f214.google.com (mail-gx0-f214.google.com [209.85.217.214]) by mx1.freebsd.org (Postfix) with ESMTP id D25978FC0A for ; Thu, 15 Oct 2009 03:51:23 +0000 (UTC) Received: by gxk6 with SMTP id 6so493425gxk.13 for ; Wed, 14 Oct 2009 20:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=4Itc5/pYeWpVmMv2HcVVK8rMr68++7Pq8yb2EFikx/c=; b=bkr33ZM8Kv0XIyrZ+a1TzWs18kmn9MjMYTgpTaDqudHkBw+WxgCC/1ZWCnujNlWc/Z BH8iCXWdzAdYPh8WN233t8XKFh+cRnhBx6u9e2tvJf52TwEPBXlioeRYTFngbwS6nqAs +qK5+i0xwLa64VgeMRtaskNXsqDGa0+eR0fyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=lyUh2/4lS4NRx+n0M7f2KZT/YR88GXDixuIX/+DWA0KRXzkl2YDy9PHeFjNYozPL3s 2yxu8ZyehdAQb/pwE0CmUfO0OOTeHT0PoBvl2szWsGTnGK1WHaETrQEZ4GaY348hBAhR k6zi0Ib15OFi1rF0Uzyrl3PJr8OCfZFF+rjnM= Received: by 10.150.43.17 with SMTP id q17mr16339868ybq.197.1255578682996; Wed, 14 Oct 2009 20:51:22 -0700 (PDT) Received: from ?192.168.0.202? (173-24-127-191.client.mchsi.com [173.24.127.191]) by mx.google.com with ESMTPS id 14sm838445gxk.2.2009.10.14.20.51.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 14 Oct 2009 20:51:22 -0700 (PDT) Message-ID: <4AD69C32.7000601@gmail.com> Date: Wed, 14 Oct 2009 22:51:14 -0500 From: LoH User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Nerius Landys References: <560f92640910142042tc46f1e3lb81ac1e4528a44ab@mail.gmail.com> In-Reply-To: <560f92640910142042tc46f1e3lb81ac1e4528a44ab@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: Best procedure for full backup of live system 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, 15 Oct 2009 03:51:24 -0000 Take a UFS2 snapshot and then backup the snapshot. A similar approach using ZFS snapshots would also work. See the handbook for more details. http://www.freebsd.org/doc/en/books/handbook/backup-strategies.html Nerius Landys wrote: > My server is increasingly having important work stored on it, and I > need to start taking backups of a lot of directories, especially > /home, /opt, /etc, /usr/local/etc, and maybe others. The ideal backup > (and what I've done in the past) is to take a full low-level dd image > of the disk while the system is down (this is easy to do in a > situation where you have dual boot). Or, since the output of dd would > take up tons of space and would only be usable on an identical hard > drive, use "dump" to take the backup while the machine is turned off > (again easy to do on a dual boot). But now, I cannot bring down the > machine. My plan is to do a tar gzip of / on the fly, and pipe that > to ssh (remote machine). However, the system is live, and files will > be in the progress of changing. > > My question is, what is the recommended procedure of taking a full > backup on a live system? Ideally, if my hard drive were to crash, I > would like to have such a backup so as to make it possible to copy > over the entire backup to a new identical harddrive without doing any > reinstall or configuration. Should I use tar/gzip? dump? What exact > command should I use? I guess I'll back up all of / including system > files, because there is not too much data. I will be piping the > output to ssh. > _______________________________________________ > 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" > >