add --extra for cmd/{dump, restore}
add auto flush
upgrade