From owner-freebsd-questions@freebsd.org Sat Aug 19 14:38:42 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B2E8DC990B for ; Sat, 19 Aug 2017 14:38:42 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8476677229 for ; Sat, 19 Aug 2017 14:38:40 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id v7JEcSf8069270; Sun, 20 Aug 2017 00:38:28 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 20 Aug 2017 00:38:27 +1000 (EST) From: Ian Smith To: Karl Vogel cc: Manish Jain , freebsd-questions@freebsd.org Subject: Re: Anything specific to keep in mind restoring from rsync? In-Reply-To: Message-ID: <20170820001747.U98697@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Aug 2017 14:38:42 -0000 In freebsd-questions Digest, Vol 689, Issue 6, Message: 4 On Fri, 18 Aug 2017 16:20:07 -0400 Karl Vogel wrote: > On Fri, Aug 18, 2017 at 10:59:33PM +1000, Ian Smith wrote: > > rsync is great for 'user data', but I'm not sure whether it handles hard > > links properly, which you'll want for system directories at least. > > Use the "-H" option to handle hard links. This might burn you if > you're providing a list of files to rsync instead of letting it roam > over an entire tree; if all the linked files aren't included in your > list, rsync has no way of knowing about them. Thanks Karl, and for the script. I suppose Manish was aware of that. > > Do you have some reason not to use the canonical dump(8) and restore(8)? > > I avoid those because I copy between different systems (Linux, Solaris, > BSD) much more often than between identical ones. Fair enough, I mostly just use tar/gzip on a Linux sbox I'm stuck with. In the specific instance Manish referred to, i.e. just increasing the / filesystem from 30 to 40GB, my first thought was to use dump/restore. However, despite not having used it myself - and still assuming UFS - this seems a model job for growfs(8). The backup first is of course sensible, but by just resizing the partition with gpart and then using growfs, all that extra work should be obviated, if I'm reading it right. cheers, Ian