From owner-freebsd-questions@freebsd.org Tue Jan 5 14:19:54 2016 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 97F98A6212C for ; Tue, 5 Jan 2016 14:19:54 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B3201E48 for ; Tue, 5 Jan 2016 14:19:54 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id u05EJjXE004480 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 5 Jan 2016 14:19:45 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk u05EJjXE004480 Authentication-Results: smtp.infracaninophile.co.uk/u05EJjXE004480; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6] claimed to be liminal.local Subject: Re: There is problem during dump/restore. To: Shahin Hasanov , FREEBSD_QUESTION References: <568BC37C.2010903@FreeBSD.org> From: Matthew Seaman Message-ID: <568BD0FB.5020303@FreeBSD.org> Date: Tue, 5 Jan 2016 14:19:39 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Dbp3P1Xv8j1tF42n9CkcTDgQxQ39CcnV9" X-Virus-Scanned: clamav-milter 0.99 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2016 14:19:54 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Dbp3P1Xv8j1tF42n9CkcTDgQxQ39CcnV9 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable On 05/01/2016 13:39, Shahin Hasanov wrote: > Thank you Matthew, > I have two HDD da0,da1 > da0 is 147GB - ufs > da1 is 1.1TB - zfs Ah -- there is your problem. dump/restore only works with UFS. However, if what you want to do is copy a directory heirarchy from one place to another preserving ownership and permissions and so forth, then there are very many ways to do that. Two suggestions: 1) Using stuff from the base system only: # cd /src/dir # tar -cf - . | ( cd /dest/dir ; tar -xvf - ) 2) Using rsync(1) from ports: # rsync -avx /src/dir/ /dest/dir/ (Note the trailing slashes on the directory paths -- they're important with rsync.) Cheers, Matthew --Dbp3P1Xv8j1tF42n9CkcTDgQxQ39CcnV9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQJ8BAEBCgBmBQJWi9EBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATvHgQAIh3D8GfegtyG8GLLfGtJSgo ZYF2VbEfq69dOsZYeCXU+HCZlkrvOXN62NGdxlylKlK7Nt5Fp/d9axqhKuuuBKwj SroVSObZ0FmBZ5BQwB74lV6RFVnOHw6Z60md4Bh0PqhspoAYjmnQS8zEPfk8PZYH SciViOkdFufe0ym4f8KymJDIvepnH+L8dIvqSbSl6y/Kd5goqf5tUT4g8Q+KD40K UocZY+TzSDv76hjkgYI4+vbFpIL3Zt7CYsl+4ImsgE80XE/MPXxlYHDgWUoYENh/ S+Htl6C7GADPGywzrWNm5td5HTTAZ6c8DMp3qzrknpoan6ChNdHhqEjn68Gch8VB yJf/tbRnyifcmbgHyZWIYKymLyALb9om5rw1atbpEILz5x7ItQ6TY7zm/mBq8m1d 2JXTUUDsB6j7hHsAbStTdFvSzvquqltO0gDPN93kqnssgnXnfX8F4xX2GELgAU1q V0NGJna5+uqigc65Kd4L30bbyJ6X0R5DdIDXcsngGkiWKee+ed7kB9fTQGb7/HGo yykQCJ2hEuG3McWAeEU8mtyeTVbGXPuzz6RX13tOu5Vk6htimXaTaCg9kCk6OU1T Bl8AwOik6A5MqPK3wsn/+2JWkb2UxZdM8HTv89gLyM1f/4nA5EosJGsGPmUkUzoe RozMUlV+HkEqn4Ez4yOb =25oz -----END PGP SIGNATURE----- --Dbp3P1Xv8j1tF42n9CkcTDgQxQ39CcnV9--