-
Notifications
You must be signed in to change notification settings - Fork 30
Restore alert conditions
gaochan-1 edited this page Nov 2, 2018
·
1 revision
USAGE
nr restore alertsconditions
OPTIONS
-d, --dir
Folder name where the *.alert-conditions.bak files placed.
-m, --update-mode
Update mode. skip|override|clean are supported
skip is default value.
skip - It would skip if same alert policy name exists.
override - It would override if same alert policy name exists.
clean - First delete all alert policies, and then restore policies from local *.alert-conditions.bak files.
-f, --files
File names to restore. Multiple file names separated by commma.
-F, --File
Logging file record *.alert-conditions.bak file names to restore.
-r, --result-file-name
Logging file name, stored file name list corresponding the failure alert conditions to restore.
Examples:
nr restore alertsconditions -d ./backup_alert_conditions
Use -d argument to specify the directory
nr restore alertsconditions -d ./backup_alert_conditions -f failed-conditions.log
Use -d argument to specify the directory, use -f to sepcify the logging file name record what's alert policy failed to restore.