NIFI-3696 - Initial commit of ConfigMigration and FileManager tools #1889
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Usage information for this tool is below and is also included in the PR here:
https://github.com/YolandaMDavis/nifi/blob/f347869ceefd65d570fa5f9ab6d8daa6db2f4b57/nifi-docs/src/main/asciidoc/administration-guide.adoc
File Manager
The File Manager utility allows system administrators to take a backup of an existing NiFi installation, install a new version of NiFi
in a designated location (while migrating any previous configuration settings) or restore an installation from a previous backup.
File Manager supports NiFi version 1.0.0 and higher and is available in 'file-manager.bat' file for use on Windows machines.
To show help:
file-manager.sh -h
The following are available options:
-o,--operation <arg>
File operation (install | backup | restore)-b,--backupDir <arg>
Backup NiFi Directory (used with backup or restore operation)-c,--nifiCurrentDir <arg>
Current NiFi Installation Directory (used optionally with install or restore operation)-d,--nifiInstallDir <arg>
NiFi Installation Directory (used with install or restore operation)-i,--installFile <arg>
NiFi Install File (used with install operation)-r,--nifiRollbackDir <arg>
NiFi Installation Directory (used with install or restore operation)-t,--bootstrapConf <arg>
Current NiFi Bootstrap Configuration File (used optionally)-m,--moveRepositories
Allow repositories to be moved to new/restored nifi directory from existing installation, if available (used optionally with install or restore operation)-x,--overwriteConfigs
Overwrite existing configuration directory with upgrade changes (used optionally with install or restore operation)-v,--verbose
Verbose messaging (optional)-h,--help
Print help info (optional)Example usage on Linux:
Expected Behavior
Backup:
During the backup operation a backup directory is created in a designated location for an existing NiFi installation. Backups will capture all critical files
(including any internal or external configurations, libraries, scripts and documents) however it excludes backing up repositories and logs due to potential size.
If configuration/library files are external from the existing installation folder the backup operation will capture those as well.
Install:
During the install operation File Manager will perform installation using the designated NiFi binary file (either tar.gz or zip file)
to create a new installation or migrate an existing nifi installation to a new one. Installation can optionally move repositories (if located within the configuration
folder of the current installation) to the new installation as well as migrate configuration files to the newer installation.
Restore:
The restore operation allows an existing installation to revert back to a previous installation. Using an existing backup directory (created from the backup operation)
the FileManager utility will restore libraries, scripts and documents as well as revert to previous configurations.
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.