This article describes how to synchronize configuration from primary RE to backup RE when logged in edit private mode.
NA
Use command "commit full" or "commit full synchronize" to synchronize configuration from primary RE to backup RE when logged in edit private mode..
Reference KB article on difference between "commit" and "commit full" : https://supportportal.juniper.net/s/article/Junos-What-is-difference-between-commit-and-commit-full?language=en_US
If you are logged in exclusive mode, commit synchronize will work ( If you have "set system commit synchronize" configured, even commit will work to sync config from primary RE to backup RE ), but in private mode, executing "commit synchronize" will only commit on primary RE.
Sample output from a device highlighting the above points :
re0.RE1> configure private
warning: uncommitted changes will be discarded on exit
Entering configuration mode
[edit]
re0.RE1# commit synchronize
re0:
commit complete << commit successful only on RE 0, not on RE 1
re0.RE1# commit full synchronize
configuration check succeeds
re1:
commit complete
re0.RE1# run show configuration system | display inheritance | display set | match sync
set system commit synchronize
re0.RE1> edit exclusive
re0.RE1# commit