On the target server, importing the configuration will "merge" them with the existing configuration: every groups, rules, directives or techniques with the same identifier will be replaced by the import, and all others will remain untouched.
To import the archive on the target Rudder server, you can follow the following steps:
- Uncompress the zip archive in /var/rudder/configuration-repository
-
If necessary, correct all files permissions:
chown -R root:rudder directives groups parameters ruleCategories rules techniques
andchown -R ncf-api-venv:rudder ncf/50_techniques techniques/ncf_techniques
-
Add all files in the git repository:
git add . && git commit -am "Importing configuration"
- Finally, in the Web interface, go to the Administration > Archives section, and select Latest Git commit in the drop down list in the Global archive section, and click on Restore everything to restore the configuration.
Tip | |
---|---|
You can also perform the synchronisation from on environment to another by using git, through a unique git repository referenced on both environment. For instance, using one unique git repository you can follow this workflow:
|