Have you already seen ssb-exporter? I think this may do what you're looking for, but I'm not completely sure.
# export all posts from your database into a simple JSON file
./export-data.js -e feeds.json
# import posts from a simple JSON file into your database
./import-data.js feeds.json