Add nosync option to replacedb