Sync a couch database to disk