Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2018 21:10:02 +0300
From:      Sergey Matveev <stargrave@stargrave.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Backing up to tape
Message-ID:  <20180425181002.GA78999@stargrave.org>
In-Reply-To: <4a136190a89f631efabcc6fb803e8119@roundcube.fjl.org.uk>
References:  <4a136190a89f631efabcc6fb803e8119@roundcube.fjl.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
*** 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180425181002.GA78999>