Could be done using the logfiles of rdiffbackup, instead of expensive indexing and spamming the database.