db sync
The db sync command function flushes any database cached information to disk.
See db close for a discussion of Berkeley DB and cached data.
The db sync command returns 0 on success, and in the case of error, a Tcl error is thrown.
Copyright Sleepycat Software