I'm running this command and the target file /tmp/export.xml already exists.
/opt/training/midpoint/bin/ninja.sh export -O /tmp/export.xml
Initializing repository using midpoint home
Processed: 0, error: 0, skipped: 0, avg: .0obj/s
Export file '/tmp/export.xml' already exists
There seems to be no documented overwrite option.
But it should not hang...