.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.8. .TH PACEMAKER "8" "November 2020" "Pacemaker 2.0.1" "System Administration Utilities" .SH NAME Pacemaker \- Part of the Pacemaker cluster resource manager .SH SYNOPSIS .B crm_diff \fI\,original_xml operation \/\fR[\fI\,options\/\fR] .SH DESCRIPTION crm_diff \- crm_diff can compare two Pacemaker configurations (in XML format) to produce a custom diff\-like output, or apply such an output as a patch .SH OPTIONS .TP \-?, \fB\-\-help\fR This text .TP \-$, \fB\-\-version\fR Version information .TP \fB\-V\fR, \fB\-\-verbose\fR Increase debug output .SS "Original XML:" .TP \fB\-o\fR, \fB\-\-original\fR=\fI\,value\/\fR XML is contained in the named file .TP \fB\-O\fR, \fB\-\-original\-string\fR=\fI\,value\/\fR XML is contained in the supplied string .SS "Operation:" .TP \fB\-n\fR, \fB\-\-new\fR=\fI\,value\/\fR Compare the original XML to the contents of the named file .TP \fB\-N\fR, \fB\-\-new\-string\fR=\fI\,value\/\fR Compare the original XML to the contents of the supplied string .TP \fB\-p\fR, \fB\-\-patch\fR=\fI\,value\/\fR Patch the original XML with the contents of the named file .SS "Additional Options:" .TP \fB\-c\fR, \fB\-\-cib\fR Compare/patch the inputs as a CIB (includes versions details) .TP \fB\-u\fR, \fB\-\-no\-version\fR Generate the difference without versions details .SH EXAMPLES Obtain the two different configuration files by running cibadmin on the two cluster setups to compare: .IP # cibadmin \-\-query > cib\-old.xml .IP # cibadmin \-\-query > cib\-new.xml .PP Calculate and save the difference between the two files: .IP # crm_diff \-\-original cib\-old.xml \-\-new cib\-new.xml > patch.xml .PP Apply the patch to the original file: .IP # crm_diff \-\-original cib\-old.xml \-\-patch patch.xml > updated.xml .PP Apply the patch to the running cluster: .IP # cibadmin \-\-patch patch.xml .SH AUTHOR Written by Andrew Beekhof .SH "REPORTING BUGS" Report bugs to users@clusterlabs.org