What is the suitable for my condition downgrading or upgrading?

i have vm one

  • without internet
  • versions are
    ERPNext: v15.23.1 (version-15)
    Frappe Framework: v15.26.0 (version-15)
    Frappe HR: v15.20.3 (version-15)
    Payments: v0.0.1 (develop)

also have vm two

  • with internet
  • versions are
    ERPNext: v15.23.2 (version-15)
    Frappe Framework: v15.27.0 (version-15)
    Frappe HR: v15.20.3 (version-15)
    Payments: v0.0.1 (develop)

i want to restore the backup from vm two to vm one
how???