By default, the flow is automatically backed up every time a change is made on the canvas. The default location of the archived flow configuration file is ./conf/archive. Enabling this feature and specifying the file location are both in the nifi.properties file.
nifi.flow.configuration.archive.enabled=true nifi.flow.configuration.archive.dir=./conf/archive/ Keep in mind, the flow.json.gz/flow.xml.gz contains only the flow definition; it does not contain users and policies. If you want to keep a backup of these, then you would have to set up some process to backup ./conf/authorizations.xml and ./conf/users.xml. Currently, there is no automated mechanism within the NiFi application to back up these files like there is for flow.json.gz/flow.xml.gz. When it comes to restoration, you can simply drop the flow.json.gz/flow.xml.gz into the ./conf directory of a new NiFi instance and start it. Ideally, you would have a copy of the authorizations.xml and users.xml as well so that the policies and users are intact in the restored flow. But, they can always be recreated manually if you do not have these files. Also, be aware there is a direct relationship between flow.json.gz/flow.xml.gz, authorizations.xml and users.xml. They must remain together as each references ID values from another. -Mark On Tue, Oct 8, 2024 at 8:28 AM Félix Mondelo <felixmond...@gmail.com> wrote: > Hi, > > We've in production on a client, Apache Nifi 1.12.1. They already have a > flow which we can Download through the canvas, but how can we import this > flow to another environment? Is there any other tool/task/steps to backup a > flow definition and restore? > > Thanks and regards. > > [image: e7c4f1cf-eb16-41a4-82cf-955d4face0e7.png] >