Merge "Split restoreGaleraDb function and add restoreType param support"