As with any migration / upgrade process, it is critical to backup the underlying data:
1. the installation data and conf directories (see Understanding the Data Locations)
2. the repository database. (see Database Server Backup/Restore)