From owner-freebsd-questions@FreeBSD.ORG Mon Feb 2 19:23:25 2009 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 6F3071065959 for ; Mon, 2 Feb 2009 19:23:25 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 231738FC24 for ; Mon, 2 Feb 2009 19:23:24 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan-a.emsphone.com [199.67.51.107]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n12JNNEO039758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 2 Feb 2009 13:23:24 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n12JNNgS062026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 2 Feb 2009 13:23:23 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n12JNMOm062017; Mon, 2 Feb 2009 13:23:22 -0600 (CST) (envelope-from dan) Date: Mon, 2 Feb 2009 13:23:21 -0600 From: Dan Nelson To: Wayne Message-ID: <20090202192320.GK75802@dan.emsphone.com> References: <20090131213315.GE75802@dan.emsphone.com> <832987.51059.qm@web33107.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <832987.51059.qm@web33107.mail.mud.yahoo.com> X-OS: FreeBSD 7.1-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Mon, 02 Feb 2009 13:23:24 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-questions@freebsd.org Subject: Re: ls -lh show file not displaying correct size 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: Mon, 02 Feb 2009 19:23:26 -0000 In the last episode (Feb 02), Wayne said: > Thanks for the answer so now for the next question. How do I sync this > file to other FreeBSD servers. I tried using rsync with the --spares > but the size on the other server was on it's way to being the 256G size > and fill up the other server. How would I go about making an exact > duplicate. rsync --sparse seems to work fine for me: (dan@dan.13) /usr/tmp> truncate -s 512M bigfile1 (dan@dan.13) /usr/tmp> ls -lsk bigfile* 1 -rw-r--r-- 1 dan wheel 5368709120 Feb 2 13:09 bigfile1 (dan@dan.13) /usr/tmp> rsync --sparse -v bigfile1 dan:/usr/tmp/bigfile2 sent 536936517 bytes received 31 bytes 2958328.09 bytes/sec total size is 536870912 speedup is 1.00 rsync: U:98.46s S:16.08s E:181.03s CPU:63% Faults:0/1343 I/O:0/0 Swaps:0 (dan@dan.13) /usr/tmp> ls -lsk bigfile* 1 -rw-r--r-- 1 dan wheel 536870912 Feb 2 13:11 bigfile1 1 -rw-r--r-- 1 dan wheel 536870912 Feb 2 13:14 bigfile2 -- Dan Nelson dnelson@allantgroup.com