<br><br><div class="gmail_quote">On Fri, Jul 23, 2010 at 6:29 PM, Tom Christensen <span dir="ltr">&lt;<a href="mailto:pavera@live.com">pavera@live.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
<br><br>&gt; Date: Fri, 23 Jul 2010 10:02:26 +0200<br>&gt; From: <a href="mailto:ms@citd.de" target="_blank">ms@citd.de</a><div class="im"><br>&gt; To: <a href="mailto:pavera@live.com" target="_blank">pavera@live.com</a><br>
&gt; CC: <a href="mailto:rsync@lists.samba.org" target="_blank">rsync@lists.samba.org</a><br>&gt; Subject: Re: rsync to iSCSI over WAN<br>&gt; <br></div><div><div></div><div class="h5">&gt; On 23.07.2010 00:30, Tom Christensen wrote:<br>
&gt; &gt; <br>&gt; &gt; I am running rsync in cygwin on windows.  I am attempting to backup a <br>&gt; &gt; somewhat large data store (750GB) to a remote site.  As its windows <br>&gt; &gt; and preserving permissions exactly is important, I have an iSCSI drive <br>
&gt; &gt; mounted on the local system across a somewhat slow WAN link (IE, it <br>&gt; &gt; would take about 3 months to copy the datastore over it).  <br>&gt; &gt; Unfortunately, since this appears as a &quot;local&quot; copy to rsync, it <br>
&gt; &gt; always copies whole files.  Even though it is a &quot;local&quot; copy, I want <br>&gt; &gt; to only send diffs, as we have large files that have small changes <br>&gt; &gt; daily.  Reading the man page, and everything I can find on the net I <br>
&gt; &gt; don&#39;t see an option to force diffs only/rsync protocol, is this <br>&gt; &gt; possible?<br>&gt; <br>&gt; You have an abstraction error here, an iSCSI device is just a bit-bucket <br>&gt; like any localy connected HDD in that all filesystem and data processing <br>
&gt; is done on the local side and raw block-data is send over the WAN. You <br>&gt; would have to run the other side of rsync on the machine that provides <br>&gt; the iSCSI-Device. For that to work the remote-machine would have to <br>
&gt; mount the filesystem localy which in most cases means you would have to <br>&gt; unmount it from your Windows machine. This is because, except for <br>&gt; cluster-filesystems or a filesystem that is mounted read-only (on every <br>
&gt; machine!), a given fileystem can only be mounted on 1 machine at a time.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Bis denn<br>&gt; <br>&gt; -- <br>&gt; Real Programmers consider &quot;what you see is what you get&quot; to be just as <br>
&gt; bad a concept in Text Editors as it is in women. No, the Real Programmer<br>&gt; wants a &quot;you asked for it, you got it&quot; text editor -- complicated, <br>&gt; cryptic, powerful, unforgiving, dangerous.<br>&gt; <br>
<br></div></div>I am aware of that fact, it is precisely the fact that the filesystem is exposed directly to windows that I need iSCSI.  Mounting an ext3 partition shared via smb/cifs (another option on this NAS device) does not provide me with permissions fidelity (as ext3 does not support all of the ntfs permissions.  I was under the impression that rsync would calculate the diffs between the &quot;local&quot; copy and the &quot;remote&quot; (iSCSI) copy, and then only &quot;send&quot; the diffs, IE only the diffs would be written to disk (and therefore only the diffs would be sent via block-io over the WAN to the iSCSI).  But that very well could be a misunderstanding on my part of the way rsync functions at that low level.  Maybe on the remote side it reads through the whole file, writing it out to disk and inserting the diffs it receives?  In which case no matter what the whole file would be sent over block-io?  This functionality would also mean that even at the &quot;network share&quot; level (smb/cifs) at the remote side, you would gain nothing from --no-whole-file because the remote side would do the same thing IE write the whole file to the share anew resulting in the same amount of network traffic.<br>
<br>At any rate, --no-whole-file appeared to improve performance on the backup last night, running the backup with --no-whole-file resulted in about 75% less data copied (according to the report at the end) and the backup ran in about half the time it was taking  previously.  Granted it could have just been a slow day in the office and maybe not that many files were changed... a sample size of 1 is not representative..<div class="im">
<br></div></div></blockquote><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>What kind of system is hosting the remote iSCSI? If you need NTFS, then you could set up a iSCSI drive on on top of ZFS/FreeBSD - locally. Then setup a similar system remotely. Do your backups against the local system NTFS-NTFS, then send deltas/snapshot diffs to the remote system over WAN (using rsync or &quot;zfs send&quot;)</div>
<div><br></div><div>k</div></span></div></div><br>