Re: [zfs-discuss] zfs snapshots and rsync

2010-04-20 Thread G. Ander
Thank you very much for your help! I wasn't aware of those options.

...sending end is running rsync  3.0 (Ubuntu 8.04 LTS), crossing my fingers, 
hoping it'll work.
-- 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs snapshots and rsync

2010-04-17 Thread Bob Friesenhahn

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 Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs snapshots and rsync

2010-04-17 Thread Erik Trimble

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