The answer probably depends on what out you mean by sync to an external source. Would this be a copy of the whole database or some kind of record-by-record update based on title, date, etc.?
For purely local use, I would just make a CSV file, and be able to do searching from the shell prompt with grep.
Comment on Re: Data storage for a flexible note-taking program?