On Sun, Mar 6, 2011 at 8:02 AM, Fajar A. Nugraha <l...@fajar.net> wrote: > On Sun, Mar 6, 2011 at 10:46 PM, Brian J. Murrell <br...@interlinx.bc.ca> > wrote: >> # cp -al /backup/previous-backup/ /backup/current-backup >> # rsync -aAHX ... --exclude /backup / /backup/current-backup >> >> The shortcoming of this of course is that it just takes 1 byte in a >> (possibly huge) file to require that the whole file be recopied to the >> backup. > > If you have snapshots anyway, why not : > - create a snapshot before each backup run > - use the same directory (e.g. just /backup), no need to "cp" anything > - add "--inplace" to rsync
You may also want to test with/without --no-whole-file as well. That's most useful when the two filesystems are on the same system and should reduce the amount of data copied around, as it forces rsync to only use file deltas. This is very much a win on ZFS, which is also CoW, so it should be a win on Btrfs. -- Freddie Cash fjwc...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html