You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Prashanth Reddy <ba...@gmail.com> on 2019/04/03 12:12:47 UTC

Reg:Nifi registery

Hi

i am much interested in working with nifi and registry.but i am unable to
find backing up stored flows and how to reuse them when new registry
crashes (old one system crashes).

Best Regards,
Prashanth

Re: Reg:Nifi registery

Posted by Kevin Doran <kd...@apache.org>.
Hi Prashanth,

By default, NiFi Registry stores all data (flows, metadata, etc) in
sub directories of its home directory (the install dir, which has sub
dirs such as /conf, /lib, and /bin), so as long as you are taking
regular backups of that directory you should be able to restore from a
backup.

An alternative approach some people use is to use the
GitFlowPersistenceProvider configured with a remote git repository,
which means every flow is also synced to a remote github repository.
This backup of flows can be used for disaster recovery in a few ways:
- not released yet, but on master coming in the next release is a
feature that will repopulate NiFi Registry's metadata directory from a
git repository on startup
- scripted using a tool such as the NiFi CLI, included in the NiFi Toolkit
- some other approaches people have come up with, for example docker
images with additional scripts that let a Registry container be
initialized from a git repo and I believe there is a PR open now that
adds additional capabilities to a git-backed Registry.

Hope this helps! Let us know if you have additional questions.

Kevin

On Wed, Apr 3, 2019 at 8:28 AM Prashanth Reddy
<ba...@gmail.com> wrote:
>
> Hi
>
> i am much interested in working with nifi and registry.but i am unable to
> find backing up stored flows and how to reuse them when new registry
> crashes (old one system crashes).
>
> Best Regards,
> Prashanth