On Mon, Dec 6, 2010 at 11:14 AM, Nirbheek Chauhan <nirbheek.chauhan@xxxxxxxxx> wrote: > As an aside, my primary motivation for this was that doing an > incremental backup of things like git bare repositories and databases > using btrfs subvolume snapshots is expensive w.r.t. disk space. Even > though rsync calculates a binary delta before transferring data, it > has to write everything out (except if just appending). So in that > case, each "incremental" backup is hardly so. Since btrfs is Copy-on-Write, have you experimented with --inplace on the rsync command-line? That way, rsync writes the changes "over-top" of the existing file, thus allowing btrfs to only write out the blocks that have changed, via CoW? We do this with our ZFS rsync backups, and found disk usage to go way down over the default "write out new data to new file, rename overtop" method that rsync uses. There's also the --no-whole-file option which causes rsync to only send delta changes for existing files, another useful feature with CoW filesystems. -- Freddie Cash fjwcash@xxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
