Bob Friesenhahn wrote:
On Sat, 17 Apr 2010, G. Ander wrote:
According to how rsync works, the actual sent data should be much
less than the size of the file(s), however, I noticed that the used
space of the dataset+snapshot was the combined size of the older and
newer file.
The increase of space consumed is because rsync copied to a new
temporary file in order to assure that there is no corruption.
But do you think it would be possible to create a version of rsync
that worked more closely with ZFS in such a way that only the changes
could be written to disk?
Use these rsync options to achieve the desired behavior:
--inplace --no-whole-file
Bob
--
Bob's entirely correct, with one additional note: make sure to use
rsync 3.0.0 or later ON BOTH ENDS of the copy, as there are some
important bugfixes around the --inplace option rolled up by that point.
--
Erik Trimble
Java System Support
Mailstop: usca22-123
Phone: x17195
Santa Clara, CA
Timezone: US/Pacific (GMT-0800)
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss