From owner-freebsd-questions@freebsd.org Wed Apr 25 18:18:04 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7EE5FAC10C for ; Wed, 25 Apr 2018 18:18:04 +0000 (UTC) (envelope-from stargrave@mail2.stargrave.org) Received: from mail.stargrave.org (mail.stargrave.org [91.242.163.186]) by mx1.freebsd.org (Postfix) with ESMTP id 3A5BD83179 for ; Wed, 25 Apr 2018 18:18:03 +0000 (UTC) (envelope-from stargrave@mail2.stargrave.org) Received: from pppoe-static.mosoblast.rt.ru (unknown [IPv6:2001:470:1f13:aa9::2]) by mail.stargrave.org (Postfix) with ESMTP id 2DCEAD7A7A for ; Wed, 25 Apr 2018 21:10:18 +0300 (MSK) Received: by pppoe-static.mosoblast.rt.ru (Postfix, from userid 1001) id 744A36F5C8; Wed, 25 Apr 2018 21:10:17 +0300 (MSK) Received: by stargrave.org (Postfix, from userid 1001) id 52F3480DD; Wed, 25 Apr 2018 21:10:02 +0300 (MSK) Date: Wed, 25 Apr 2018 21:10:02 +0300 From: Sergey Matveev To: freebsd-questions@freebsd.org Subject: Re: Backing up to tape Message-ID: <20180425181002.GA78999@stargrave.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <4a136190a89f631efabcc6fb803e8119@roundcube.fjl.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4a136190a89f631efabcc6fb803e8119@roundcube.fjl.org.uk> OpenPGP: id=AE1A8109E49857EF; url=http://www.stargrave.org/.well-known/openpgpkey/hu/s8kd45yyt8ymu6uttefkjkngyagsui5x.asc User-Agent: Mutt/1.9.5 (2018-04-13) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2018 18:18:04 -0000 *** Frank Leonhardt [2018-04-25 21:00]: >If I plug a SAS drive in to an HBA it'll just appear as /dev/sa0 (or similar) >- right? > >Then I can backup everything with tar -cf /dev/sa0 /* - right? > >Is anyone using tape able to confirm any of this one way or another? I have purchased Ultrium LTO5 SAS tape drive for several months ago and use it with HardenedBSD. Everything you wrote is right. It appears (connected through SAS HBA) as /dev/sa0, /dev/nsa0, /dev/esa0 and you can directly use tar with it without any problems. mt command allows you to rewind and seek records on the tape. And neither native tar supports multivolume archives nor tape drive will do anything with it -- you have to split volumes manually somehow. You can easily do something like: zfs send zroot > /dev/sa0 to write your ZFS dataset directly to the tape and then restore from it. -- Sergey Matveev (http://www.stargrave.org/) OpenPGP: CF60 E89A 5923 1E76 E263 6422 AE1A 8109 E498 57EF