The invention provides a data backup and recovery method for an NVDIMM, an NVDIMM controller and the NVDIMM. The NVDIMM (200) comprises a DRAM (201). wherein the NVDIMM controller is used for controlling the NVDIMM and comprises a DDR (Double Data Rate) controller (101), an NAND flash memory controller (102), a data backup module (103) and a data recovery module (104), and the DRAM adopts a DBI (Data Base Interface) and enables the DBI. During data backup, the DDR controller reads N bits of DQi and 1 bit of DBIi from the DRAM and sends the N bits of DQi and 1 bit of DBIi to the data backup module, and when the DBIi is 1, the data backup module compares the DQi with the DQ-1, if DQi and DQi-1 If the digits of which the median values are different from one another are greater than N / 2, turning over the DQi, setting the DBIi as 0, and otherwise, keeping the DQi and the DBIi unchanged; When the DBIi is 0, the DQi and the DBIi are kept unchanged, the data backup module sends the processed DQi and the processed DBIi to the NAND controller, and the NAND controller writes the processed DQi and the processed DBIi into the NAND flash memory.