From owner-freebsd-questions Sun May 19 22: 2:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from empty1.ekahuna.com (empty1.ekahuna.com [198.144.200.196]) by hub.freebsd.org (Postfix) with ESMTP id 45A6C37B412 for ; Sun, 19 May 2002 22:02:50 -0700 (PDT) Received: from pc-02 (pc02.ekahuna.com [198.144.200.197]) by empty1.ekahuna.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com for ; Sun, 19 May 2002 22:02:50 -0700 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: questions@FreeBSD.ORG Date: Sun, 19 May 2002 22:02:49 -0700 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: More tar problems Reply-To: pjklist@ekahuna.com X-mailer: Pegasus Mail for Win32 (v3.12c) Message-ID: <20020520050250032.AAA423@empty1.ekahuna.com@pc02.ekahuna.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems like some aspects of tar have changed since earlier 4.x FreeBSD. I used to use the following command to facilitate copying filesystems from an old hard disk to a new one, but it no longer works on 4.6-PRE: tar clf - -C /start_dir -X /excluded_dir -X /another_excluded_dir . | tar xpvf - -C /destination_dir ("dir" also means "filesystem") Problem seems to be it ignores the "-X" option. I get this kind of result: tar: can't add file -X : No such file or directory tar: Removing leading / from absolute path names in the archive. So it seems it ignores the -X option and then tries to add the argument to the -X option to the archive. I also tried "--exclude- from" instead of -X, same result. -- Philip J. Koenig pjklist@ekahuna.com Electric Kahuna Systems -- Computers & Communications for the New Millenium To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message