On Jul 7, 2009, at 2:35 PM, Neil Schemenauer wrote: > On Tue, Jul 07, 2009 at 01:46:33PM -0400, Binger David wrote: >> I don't understand why splitting would be better than using >> the --append flag on rsync. > > The --append flag does not handle a packed database. I suppose you > could create a script that detected a pack and called rsync without > the --append flag in that case. I think that is what the script I posted here does. It checks the time and inode on the .prepack file instead of the database file itself. When those change, you know that a pack has been completed. > >> If, in addition to the inode number, you watch for changes in the >> ctime of the file and/or the .prepack file, I think you could >> avoid the possibility of an inode number being the same in a >> twice-packed file. > > I don't see how that is bullet-proof either. The ctime changes at > least as fast as mtime. My solution works 100% as long as the > pack interval is longer than the time between splits. I think that is why my script uses the .prepack file, and I think it works for any pack interval.