From owner-freebsd-questions@freebsd.org Sat Oct 5 08:44:25 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C551A12C2E8 for ; Sat, 5 Oct 2019 08:44:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46lgK41N24z4TKl for ; Sat, 5 Oct 2019 08:44:23 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.24.151]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPA (Nemesis) id 1Mjjvp-1hp4gN3135-00lI3l; Sat, 05 Oct 2019 10:44:16 +0200 Date: Sat, 5 Oct 2019 10:44:13 +0200 From: Polytropon To: Kurt Hackenberg Cc: freebsd-questions@freebsd.org Subject: Re: Guides for ZFS Full backup to NFS drive and restore from NFS drive Message-Id: <20191005104413.39e3c081.freebsd@edvax.de> In-Reply-To: <9177b014-9041-f51e-1856-b6dbdec4afc1@panix.com> References: <9177b014-9041-f51e-1856-b6dbdec4afc1@panix.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:T34LHDkvwPo265AVx5d7SUZNqaRk++XioQLKKvGAGOornSjhyb3 qTDSDjRv/8ZywrXXGgbcDY+u4cQFP7OOatj8CZwA+gOdO8Y3j7AJP/E9v6PdJ7qMDTwlXTQ oZGfQm+1sqdnRV2aB3v3oRRa+dvaCb7Ck7osWosm1MQ2tn5RMr7gd0k4DCheuUUaV+VtWaF Zswr/KrSxedwSwloqQpcQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:8pxlVsyf9XU=:P0xLKUFAveGX1n1tDJmzRa YSKdaXtequHRxLvhI9ZXTC4uRJ+2hKBD/pB6gqzMEo6S7JE2zkEQq0pfoGFZGx/pM/knNN6VY avrVlBjb15Ffj0m3ObtrEWsSIyX9qBK2T6Ypp90bm1zCkWrvFnU1k9PC82dRldtx0GI9fDzX0 064nlDQV4witb8EGBlF68dikczWSrJTwChRUEBset2xDXoxe2NCnOiFxoupeIEvZQIWBH7A6C wn6psdQ+lXlHUBIutDcHzqKskb3V969f4cCk6piqg6mh/vWiRsaomEcksCwz2E8MrzumtKia4 Fl0tFeujlZLjiLGk8uPTkeV4/myrDHx34R5iFIx9ut3lmjRWOSsJTx8fztKpzFcKeLuWDVdXc jNS5fXImasTHJeMijey7kLh5ECYcNTGXVz+Izin5vPRAtCuU/RGw/qZ+g08rHPHu1t/Pu+z/L ehsjsgmTdDuYrqTWKrunDXJBTpZiAeMOysJj7dEYdsQxdQYEsMLkx46wpVXSGIkbg130XjAqx jTrXbJccJIbZVNxydFewdko/3X1H6hKrD3Avt+gN58Xzb06h5J9HKT9QB//LBpcAVvCgwC2gi DD3iQH8SJfcbyKD54lenrVIajCODGvkFk5YU4CggEWehoO+H4AO3uIr/uwPkkDQloI4Y12MpC g8Ts0Plc6Cx4WTTHC7u9RMbbk+LbiE9wettxVsKZFwGd8/HRRw5O6inPuskdmZqAPSqybXzsU tZy4STtBJeNgaBberwUhE2lMqbfKcTLs/fj5rpxHfGNsT8tDlaMSj2B9t8T3YB3K2+JrggVd5 +/eWqUMfqnB1Q1Ig7hSIy3eGhBTMzHvGcLi7qCR9parZQZWNLH6HIfDvxsNul0Hcz8PlTohCh DYbXdq02lSPcNM7tcYNt9NuGcwl21lIh9zlTx6H7w= X-Rspamd-Queue-Id: 46lgK41N24z4TKl X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.24) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [3.78 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[151.24.222.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.79)[0.788,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.54)[0.537,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[24.17.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[24.17.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.06)[ip: (-0.42), ipnet: 212.227.0.0/16(-1.33), asn: 8560(2.06), country: DE(-0.01)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Oct 2019 08:44:25 -0000 On Fri, 4 Oct 2019 18:38:49 -0400, Kurt Hackenberg wrote: > On 2019-10-04 17:20, Alejandro Imass wrote: > > > Hi there FreeBSD folk! > > > > Are there any easy to follow guides to completely backup a FreeBSD system > > to an NFS drive and then restore the complete system from the backup in the > > NFS drive? > > > > I don't have much NFS expertise but it shouldn't be that complicated. > > > > I found this guide but not exactly what I'm looking for: > > > > https://www.dan.me.uk/blog/2012/08/05/full-system-backups-for-freebsd-systems-using-zfs/ > > > > Is there a utility or something to make this process less painful? > > Do you mean to recreate the file tree on the NFS server, by copying each > FreeBSD file to an NFS file? That might not work perfectly. The initial question doesn't seem to sound like that was the objective. > I believe NFS doesn't implement everything the FreeBSD filesystem does. > It might not include sparse files, special files, extended file metadata > (access control, "flags")... > > If you use ZFS, you probably should use its backup/restore mechanisms, > as in that article. For good results, it probably does have to be that > complicated. Definitely. It is possible (and probably the way to go in this scenario) to write the "zfs send" result to a file that is accessible via NFS, first for backup, then have a rescue system handy (for example, a FreeBSD live system CD, DVD, or USB stick) to boot the system from again, make any neccessary preparations, and then run "zfs receive" with the previously mentioned file via NFS as source. So basically it's what you do with traditional dump and restore via _files_ stored somewhere else on the network, but with ZFS tools. :-) Or did I misunderstand the question? > If you don't use ZFS, then I suggest that you look at the programs > "dump" and "restore". They have man pages. The FreeBSD Handbook also has > some information about backup/restore for non-ZFS: > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html Additional valuable information here: http://www.wonkity.com/~wblock/docs/html/backup.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...