Backing Up:

 nvram backup /tmp/nvram.bin

Restoring:

To get the file onto the router use either SCP or I have a website, so I just uploaded it and use wget.

Example:

 

 wget https://domain/uploads/nvram.bin


Now:

nvram restore /tmp/nvram.bin && reboot