From owner-freebsd-questions@FreeBSD.ORG Tue Aug 10 22:54:35 2010 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 611141065673 for ; Tue, 10 Aug 2010 22:54:35 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.freebsd.org (Postfix) with ESMTP id CF4018FC0A for ; Tue, 10 Aug 2010 22:54:34 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id o7AMsXEG059432 for ; Wed, 11 Aug 2010 00:54:33 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id C2510BA9C; Wed, 11 Aug 2010 00:54:32 +0200 (CEST) Date: Wed, 11 Aug 2010 00:54:32 +0200 From: Roland Smith To: freebsd-questions@freebsd.org Message-ID: <20100810225432.GA63330@slackbox.erewhon.net> References: <20100809180022.GA33596@freebsd.org> <20100810213211.GA61196@slackbox.erewhon.net> <86wrryt9gp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <86wrryt9gp.fsf@gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: chflags(1) unaware utilties 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: Tue, 10 Aug 2010 22:54:35 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 11, 2010 at 01:59:50AM +0400, Anonymous wrote: > >> AFIK, pax is a POSIX thing, and as such working > >> correctly or sanely would violate its posix nature. > >> (POSIX is an anagram of "Pox? Si!") > >>=20 > >> Is cpio chflags-aware? > > > > To the best of my knowledge the _only_ way to be sure you have backed u= p _all_ > > possible features (flags, extended attributes &c) of a UFS filesystem i= s to > > use dump(8) & restore(8). >=20 > Since when did the thread switch to UFS-specific tools?=20 The point I was trying to make is that the way to make the most accurate backup is to use the tools native to the filesystem. To the best of my knowledge, only UFS and ZFS actually supports the flags u= sed by chflags(2), and since I don't use ZFS, I used UFS as my example, which means dump/restore. For ZFS you could use 'zfs send' on a snapshot. > Unless I'm missing smth dump(8)/restore(8) don't work on ZFS. You can use > bsdtar(1) in order to save/restore chflags, ACLs and extattrs in a > FS-agnostic way. Since bsdtar is based on libarchive, it has restrictions depending on the t= ype of format you use. See libarchive-formats(5). If you are sure that your filesystem is not using any features that cannot = be stored in the libarchive format of your choosing, then by all means, go ahe= ad. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkxh2KgACgkQEnfvsMMhpyUZBACferEz5qchAYc6rQ2JioO540Eb YQQAn3/ixJKB3BnPdxz5GzxJme+/9LRm =yUzp -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--