From owner-freebsd-questions@FreeBSD.ORG Wed Jun 29 04:30:44 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9B02216A41C for ; Wed, 29 Jun 2005 04:30:44 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (sigma.octantis.com.au [207.44.188.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A64043D55 for ; Wed, 29 Jun 2005 04:30:44 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 2639 invoked from network); 29 Jun 2005 14:30:43 +1000 Received: from andromeda.lef.com.au (HELO ?10.168.101.24?) (210.8.93.2) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 29 Jun 2005 14:30:43 +1000 Message-ID: <42C223EE.30406@meijome.net> Date: Wed, 29 Jun 2005 14:30:38 +1000 From: Norberto Meijome User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Drew Tomlinson References: <42C20ADE.8080608@mykitchentable.net> In-Reply-To: <42C20ADE.8080608@mykitchentable.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: How Can I Clean Up Files That Don't Exist? 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: Wed, 29 Jun 2005 04:30:44 -0000 Drew Tomlinson wrote: > I used the following tar command to copy a file hierarchy: > > tar cfp - -C /home . | tar xfpv - . > > However when I hit user maildirs, many files get copied but I also get a > lot of errors such as these: > > .//Maildir/.Trash/cur/1113462063.17964_0.blacklamb.mykitchentable.net:2,S > > tar: > .//Maildir/.Trash/cur/1113462063.17964_0.blacklamb.mykitchentable.net\:2,S: > Cannot open: No such file or directory > I've seen this happen many times, not related to one particular app, but always with temporary filenames / very transient filenames ( /proc//, etc). I dont' know for sure, but I would say that there's a short lag between tar getting the list of files to process and actually working on them. By the time it gets to them, they are gone. If you need to get a snapshot of a filesystem in a coherent form you need to make sure it doesnt change from under you - check the snapshot functionality in 5.x, or go single user or stop those processes creating temp files, which may not be an option. I suggest u ignore those messages. HTH, Beto