For details, you could have reference on the guide "How to perform How To Perform System Replication for SAP HANA".
Using HANA studio
- Perform backup on primary
Primary Host: Enable system replication
- Stop secondary DB
Secondary : Register secondary system
-
Using command line tool hdbnsutil:
Primary :
hdbsql BACKUP DATA USING FILE ('<path><prefix>')
Primary:
hdbnsutil -sr_enable --name=SITEA
Secondary:
sapcontrol –nr <instance_number> -function StopSystem HDB
hdbnsutil -sr_register
--remoteHost=<primary hostname>
--remoteInstance=<instance number>
--replicationMode=<sync|syncmem|async>
--operationMode=<delta_datashipping|logreplay>
--name=SITEBSecondary:
sapcontrol –nr <instance_number> -function StartSystem HDB