Very good point Adam. And, while we're at it, if nifi.properties is
likewise protected, the key to decrypt those values is in bootstrap.conf
(nifi.bootstrap.sensitive.key). So, add it to the list of files to backup.
This is only an issue for 1.x though.

On Wed, Oct 9, 2024 at 1:28 AM Adam Taft <a...@adamtaft.com> wrote:

> Mark Bean wrote:
> > 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.
>
> Just mentioning that dropping a flow.xml.gz and/or flow.json.gz will not
> immediately work if any of the processors are configured with sensitive
> property values (which is common). The encryption key for these sensitive
> configuration values is stored in the nifi.properties file, in:
>    nifi.sensitive.props.key.
>
> Generally backing up and copying nifi.properties would be wise, if you are
> likewise copying flow, user, authorizers, etc. configuration files.
>
> On Tue, Oct 8, 2024 at 10:24 AM Bryan Bende <bbe...@gmail.com> wrote:
>
> > Lots of great info in this thread.
> >
> > Keep in mind Templates are deprecated in 1.x and removed completely in
> 2.x.
> >
> > Flow Definition JSON is the replacement which is the format for
> > "Download Flow Definition" and can be uploaded from the create Process
> > Group screen to import.
> >
> > On Tue, Oct 8, 2024 at 10:55 AM Chris Debevec
> > <christopherdebe...@gmail.com> wrote:
> > >
> > > Often id just highlight what i want on the canvas, right click, create
> > > template.
> > >
> > > From there you can download the template and uplaod to a new system via
> > the
> > > UI.
> > >
> > > If you just want to copy everything in an old system to a new you could
> > tru
> > > copying the conf directory
> > >
> > > Regards,
> > > Chris
> > >
> > > On Tue, Oct 8, 2024 at 7:27 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]
> > > >
> >
>

Reply via email to