From owner-freebsd-questions@FreeBSD.ORG Sun Jul 11 02:55:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4709F16A4CE for ; Sun, 11 Jul 2004 02:55:41 +0000 (GMT) Received: from probsd.org (rrcs-midsouth-24-199-182-230.biz.rr.com [24.199.182.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F17943D1D for ; Sun, 11 Jul 2004 02:55:39 +0000 (GMT) (envelope-from dana@coastal-law.org) Received: from probsd.org (probsd.org [192.168.1.4]) by probsd.org (Postfix) with ESMTP id 0BD4946570 for ; Sat, 10 Jul 2004 22:55:39 -0400 (EDT) Received: from 192.168.1.1 (SquirrelMail authenticated user dgolden); by probsd.org with HTTP; Sat, 10 Jul 2004 22:55:40 -0400 (EDT) Message-ID: <2785.192.168.1.1.1089514540.squirrel@192.168.1.1> Date: Sat, 10 Jul 2004 22:55:40 -0400 (EDT) From: "D Golden" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.3 X-Mailer: SquirrelMail/1.4.3 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: excluding from tar X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 02:55:41 -0000 I've created a tar archive of my entire system, but I want to exclude everything in /proc , /usr/ports, and the FILE /usr/backup.tar when updating the archive. I've tried: 1. cd / && tar -vu --file /usr/backup.tar * --exclude=/proc --exclude=/usr/ports --exclude=/usr/backup.tar 2. cd / && tar -vu --file /usr/backup.tar * --exclude=/proc/* --exclude=/usr/ports/* --exclude=/usr/backup.tar 3. cd / && tar -vu -X /root/nodump --file /usr/backup.tar * and in /root/nodump I have 3 lines: /proc # Also tried /proc/* /usr/ports # Also tried /usr/ports/* /usr/backup.tar However, in all three examples, /proc , /usr/ports, and the FILE get updated. What am I missing? Dana