If rsync can check the nodump flag, it can be easier to exclude some files from the sync. You don't need to create list the files that should be excluded, but can just set the nodump flag for some files/directories.
Created attachment 1282 [details] Very preliminary nodump support Here is a patch that might work with FreeBSD (I have no way to test it to know for sure -- this is based on a patch for GNU tar that I saw). The NODUMP flag-testing code would need to be improved to be compatible with more systems before this option would be considered for inclusion in rsync. Anyone wish to help with that?
Created attachment 1283 [details] fgetflags.c from e2fsprogs Hmm, I just had a look at this (I am using linux 2.6.12). It looks like you need to do an ioctl to get the flags. I think that the code from e2fsprogs could be used to get the flags for the check. (attachment)