From owner-freebsd-questions@FreeBSD.ORG Thu Feb 14 04:25:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FEA516A41A for ; Thu, 14 Feb 2008 04:25:48 +0000 (UTC) (envelope-from scphantm@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id DA33813C47E for ; Thu, 14 Feb 2008 04:25:47 +0000 (UTC) (envelope-from scphantm@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1302855uge.37 for ; Wed, 13 Feb 2008 20:25:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; bh=9p5YbTK1wGP6HH3ueru5rg+PmOM7rOcItjDcRT4TH88=; b=urmLjt5Whg1WyG3kfp3OjfdHKoVmpg8DTwnmsSuWg9LZleBmQGe0+rowv44dAJFuVea2E4YQ2dcCtDhqq1fHTFaHPJz2IUW1gWJYaritE1vt/BLekhAQb0ehYYUwThRaYH2JiPHbzTjlGOCyqmU+GG/fCn6+iMOmpVSf06/zlN8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=OEqk/J9uoxeVOfgjQZPWlyCNIG8S6Zln2BRa0BV1MB5qA4KPhVb80avApugvnIeJx1hzgg3IrK5/ofes2KAjrnxUwxgbhMSrusHbYzm+QDYEFpwTgSq1H2sX6dcAQcElhjOwFxLVMR0vVurV7LHnq/NnbV0dLwlT73FeMCVNEPQ= Received: by 10.78.137.7 with SMTP id k7mr7572hud.7.1202961442068; Wed, 13 Feb 2008 19:57:22 -0800 (PST) Received: by 10.78.184.11 with HTTP; Wed, 13 Feb 2008 19:57:22 -0800 (PST) Message-ID: <5c99941f0802131957t3fa8f7bo66c30cebfa54d7b6@mail.gmail.com> Date: Wed, 13 Feb 2008 22:57:22 -0500 From: "Steel City Phantom" Sender: scphantm@gmail.com To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Google-Sender-Auth: 8d066db434ef519f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: tar backup script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2008 04:25:48 -0000 this isn't really bsd specific but i still need help with it. im writing a backup script a clip from that script is this: find /usr/local/www/data-dist/ -name config.php > /usr/local/backupScript/include find /usr/local/www/data-dist/ -name ClientFiles >> /usr/local/backupScript/include tar cvf /usr/local/backupScript/files/www-client-files.tar -I /usr/local/backupScript/include /usr/local/www/data-dist obviously im creating an include file from a directory. when the tar runs, it correctly adds all the files in the include file. but once that is finished, for some reason tar then goes back and adds all the files that are in the /usr/local/www/data-dist directory, even the ones in the include file. i was under the impression that the -I command would add ONLY the files that are listed in the include. why is it adding those and then after finishing that, adding all the others?