From owner-freebsd-questions@FreeBSD.ORG Fri Aug 16 06:46:16 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A982FF0D for ; Fri, 16 Aug 2013 06:46:16 +0000 (UTC) (envelope-from nicolas.kowalski@gmail.com) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 339502363 for ; Fri, 16 Aug 2013 06:46:16 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id en1so470284wid.14 for ; Thu, 15 Aug 2013 23:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=/yj8VhCkXszg1OtLuPkXz3LFPm8ZT1W48MA2ujTM5F0=; b=ZCsW8W6iSPaEMVBRR/+6EeUEjXq6xW+S56pf52wKXSV//BzA+0aw8wdHW7D46VCkkW 6m6rzQIvKfirZT2RlhptKr4couYmGuAc5WyaHCgQ1VpHS+vs+omuZQFiw8k2QnKhrhfi uceTwUeXM4ZhSr7R5PaX3qKjusXBbccWlwRAp9tw5fkcHYbKSJNV5kM5AuqPIKYYmhB+ MtoGpxJA7d+MRSVxxvOIQruYq0gW82y5yvkvl95xcTKBQKt0c0jTlKXdOYoeGyya/G2Z kRSfA2imFIt4ZqIysQtA5hYLh4V03ftA5kQwRqezSx3lcGfeZp0O0yxqna4TStOqNPyJ 4A5A== X-Received: by 10.180.84.65 with SMTP id w1mr4247829wiy.4.1376635574554; Thu, 15 Aug 2013 23:46:14 -0700 (PDT) Received: from petole.demisel.net ([2a01:e35:8ae7:65f0::2]) by mx.google.com with ESMTPSA id r6sm113261wiw.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 23:46:13 -0700 (PDT) Received: by petole.demisel.net (Postfix, from userid 1000) id 33255405BF; Fri, 16 Aug 2013 08:46:12 +0200 (CEST) Date: Fri, 16 Aug 2013 08:46:12 +0200 From: Nicolas KOWALSKI To: freebsd-questions@freebsd.org Subject: Re: copying milllions of small files and millions of dirs Message-ID: <20130816064612.GH1190@petole.demisel.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <7E7AEB5A-7102-424E-8B1E-A33E0A2C8B2C@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7E7AEB5A-7102-424E-8B1E-A33E0A2C8B2C@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Aug 2013 06:46:16 -0000 On Thu, Aug 15, 2013 at 11:13:25AM -0700, aurfalien wrote: > Is there a faster way to copy files over NFS? I would use find+cpio. This handles hard links, permissions, and in case of later runs, will not copy files if they already exist on the destination. # cd /source/dir # find . | cpio -pvdm /destination/dir -- Nicolas