From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5D0C61382C5 for ; Wed, 5 May 2021 15:28:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 95AD8E088A; Wed, 5 May 2021 15:28:32 +0000 (UTC) Received: from pmta21.teksavvy.com (pmta21.teksavvy.com [76.10.157.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3638BE07B3 for ; Wed, 5 May 2021 15:28:32 +0000 (UTC) IronPort-SDR: p+UN0Ql9uDF9ZcrvV2qsm4Nw4K9YF+fUq2hPe17u3sRh9iVMSYulXzebeNUvx6UlaukWrPnvLY HmTGFMIVweMw== IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AV80uBKkrW1ZOX9Ye9m71UhOm7BXpDfK/3D?= =?us-ascii?q?Abvn1ZSRFFG/GwvcaogfgdyFvYiCwJXmshhNCHP8C7MBHh3LRy5pQcOqrnYR?= =?us-ascii?q?Lvv3GmIJonwYzpxTDhHCOWzJ856Y5Lda9iBNrsSWVrlMqS2njaL/8MyMSKmZ?= =?us-ascii?q?rEuc7w1HFoJDsBV4hB6ENDBh+fAglKQmB9dP4EPb69wuYCmDa6Y3QQaa2AZk?= =?us-ascii?q?Ute+TYvdXEmNbHTHc9aSIP0wWFgTO25LOSKXHxtSs2aD9Bzawv9mLIiWXCh5?= =?us-ascii?q?mLie2xyRPXygbogKh+pd2J8Ld+OPA=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2E2OgAeuZJg/wL192haHQEBAQEJARI?= =?us-ascii?q?BBQUBQAmBTgIBgx9Wa4gVA2CDcl6GVYIeOwGaSIF7CwEBAQEBAQEBAQ4CERQ?= =?us-ascii?q?FAQIEAQEDA4QGOgQEAgKCAiY8Ag0CBAEBDAEBAQUBAQEBAQYEAgKBAIVQDUM?= =?us-ascii?q?WAYJ7gQgBAQEBAQEBAQEBAQEBAQEBAQEBFgINUmcGMgEjMws0EhBHGYJygwc?= =?us-ascii?q?PqSaBNIEBg0gBCwEKAQ4JaoR6BoE6AY1fQ0CBCUKENz6FD4UrBINVASuBRBp?= =?us-ascii?q?nL5BWqj0KgxCBIweIT5NclFmQSqEwmgyBZn0IgyRQGQ5WkTmKeSgvOAIGCgE?= =?us-ascii?q?BAwlXAYhbg1wBAQ?= X-IPAS-Result: =?us-ascii?q?A2E2OgAeuZJg/wL192haHQEBAQEJARIBBQUBQAmBTgIBg?= =?us-ascii?q?x9Wa4gVA2CDcl6GVYIeOwGaSIF7CwEBAQEBAQEBAQ4CERQFAQIEAQEDA4QGO?= =?us-ascii?q?gQEAgKCAiY8Ag0CBAEBDAEBAQUBAQEBAQYEAgKBAIVQDUMWAYJ7gQgBAQEBA?= =?us-ascii?q?QEBAQEBAQEBAQEBAQEBFgINUmcGMgEjMws0EhBHGYJygwcPqSaBNIEBg0gBC?= =?us-ascii?q?wEKAQ4JaoR6BoE6AY1fQ0CBCUKENz6FD4UrBINVASuBRBpnL5BWqj0KgxCBI?= =?us-ascii?q?weIT5NclFmQSqEwmgyBZn0IgyRQGQ5WkTmKeSgvOAIGCgEBAwlXAYhbg1wBA?= =?us-ascii?q?Q?= X-IronPort-AV: E=Sophos;i="5.82,275,1613451600"; d="scan'208";a="160499223" Received: from 104-247-245-2.cpe.teksavvy.com (HELO waltdnes.org) ([104.247.245.2]) by smtp12.teksavvy.com with SMTP; 05 May 2021 11:28:30 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Wed, 05 May 2021 11:28:32 -0400 From: "Walter Dnes" Date: Wed, 5 May 2021 11:28:32 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] tar exclude syntax tip Message-ID: References: <20210505160303.58ba6a67@ventiloplattform.tastytea.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210505160303.58ba6a67@ventiloplattform.tastytea.de> X-Archives-Salt: 8211e325-8e33-43af-a47b-c4f4f4acfeba X-Archives-Hash: bdcfbc5da6848e17ebcd6d103d22cd00 On Wed, May 05, 2021 at 04:03:03PM +0200, tastytea wrote > > This works fine here with ???tar (GNU tar) 1.34???: > > $ mkdir -p a/b > $ touch a/file a/b/file > $ touch a/file.xz a/b/file.xz > $ tree a > a > ????????? b > ???   ????????? file > ???   ????????? file.xz > ????????? file > ????????? file.xz > > 1 directory, 4 files > $ tar -cvzf test.tar.gz --exclude="a/file" --exclude="a/b/*.xz" a That's files. What happens with directories, e.g. tar -cvzf test.tar.gz --exclude="a/b/" a I know I followed the manual. Actually, my problem seems to be with directories. See https://serverfault.com/questions/742514/running-the-tar-command-with-the-exclude-functionality-does-not-work-for-direc where someone finds that... tar hczf t.tar.gz * --exclude="./test1" ...doesn't work, but... tar --exclude="./test1" -hczf t.tar.gz * ...does work!?!?!? -- Walter Dnes I don't run "desktop environments"; I run useful applications