Erpnext disaster recovery

erpnext , in case of disaster recovery, how it move from master to slave, is it automatic or need to run any command