From nobody Thu Mar 09 07:43:28 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PXLlT3Kf1z3wKMf for ; Thu, 9 Mar 2023 07:43:33 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXLlS2jQ1z4Chl for ; Thu, 9 Mar 2023 07:43:32 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [188.174.53.180] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paAvx-00068L-QU for freebsd-questions@freebsd.org; Thu, 09 Mar 2023 08:43:29 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 3297hTbc001513 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 9 Mar 2023 08:43:29 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 3297hSlq001512 for freebsd-questions@freebsd.org; Thu, 9 Mar 2023 08:43:28 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 9 Mar 2023 08:43:28 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: problem while moving HOME from FreeBSD to MacOS with bsdtar Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-questions@freebsd.org List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.53.180 X-Spamd-Result: default: False [-2.59 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.79)[-0.790]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[unixarea.de]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; HAS_XAW(0.00)[]; HAS_XOIP(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[178.254.4.101:from]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de] X-Rspamd-Queue-Id: 4PXLlS2jQ1z4Chl X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N I have had to move in my office from a FreeBSD in a VM to a Mac. To not loose my HOME I created a tar archive on FreeBSD and restored it with tar into the Mac (all details about versions see below). The tar archive contains a lot of dirs and file (~30.000) and one dir is guru/Mail where a mbox file guru/Mail/purism exists. It also exists a plain file guru/mail (note: the dir is with capital M). This leads on extract to the problem that guru/Mail is also created as a plain file, not as a directory and afterwards guru/Mail/purism can't created in it. Comments (apart of: don't use Mac)? Note also: Both system use bsdtar :-) matthias FreeBSD: $ uname -a FreeBSD c720-r368166 13.0-CURRENT FreeBSD 13.0-CURRENT #23 r368166M: Thu Dec 17 13:12:37 CET 2020 guru@c720-r368166:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Mac: $ uname -a Darwin APITZM-1MBPOH 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:07 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8110 arm64 $ tar tzvf guru-vm-r368166-last.tar.gz | grep -i guru/Mail drwx------ 0 guru wheel 0 27 Sep 2021 guru/Mail/ -rw-r--r-- 0 guru wheel 1013 8 Aug 2013 guru/mailKelpe.txt -rw-r--r-- 0 guru wheel 1508 24 Aug 2017 guru/mails.txt -rw-r--r-- 0 guru wheel 4016 9 Nov 12:36 guru/mail -rw------- 0 guru wheel 3043983 24 Sep 2021 guru/Mail/purism $ tar xzf guru-vm-r368166-last.tar.gz guru/Mail/purism: Could not stat guru/Mail/purism tar: Error exit delayed from previous errors. $ ls -ld guru/Mail guru/mail -rw-r--r-- 1 apitzm xxxx\Domain Users 4016 9 Nov 12:36 guru/Mail -rw-r--r-- 1 apitzm xxxx\Domain Users 4016 9 Nov 12:36 guru/mail $ tar tzvf guru-vm-r368166-last.tar.gz | cat -n | grep -i guru/mail 227 drwx------ 0 guru wheel 0 27 Sep 2021 guru/Mail/ 496 -rw-r--r-- 0 guru wheel 1013 8 Aug 2013 guru/mailKelpe.txt 497 -rw-r--r-- 0 guru wheel 1508 24 Aug 2017 guru/mails.txt 1065 -rw-r--r-- 0 guru wheel 4016 9 Nov 12:36 guru/mail 3583 -rw------- 0 guru wheel 3043983 24 Sep 2021 guru/Mail/purism FreeBSD: $ tar --version bsdtar 3.4.3 - libarchive 3.4.3 zlib/1.2.11 liblzma/5.2.5 bz2lib/1.0.8 libzstd/1.4.5 Mac: $ tar --version bsdtar 3.5.1 - libarchive 3.5.1 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub