The simplest way to migrate your server to a new one is to copy /var/rudder/configuration-repository from your former server to the new one. In this folder you will find all your Rules/Groups/Directives/Techniques are stored. By copying that folder you will keep the git tree used by your server and keep your comments.
-
Copy
/var/rudder/configuration-repository
to your new server - In Rudder UI Go to Administration > Policy Server
- Reload the Technique Library
- Go to Administration > Archives
- In Global Archive, "Choose an archive" select Latest git commit
- Click on Restore everything
- After deployment, your configuration should be restored
Alternatively, you can follow the Archive/Import procedures described in Archives