Lately there have been discussions regarding router backup and restore and how tedious it is. There are instances when a full restore is NOT in your best interest. I have found that the majority of time is spent reconfiguring your clientlist and DHCP reservations. The following has been posted here some years ago however those commands did not work for me. I have modified those commands and have come up with my version that works.
To save/restore custom_clientlist and dhcp_staticlist in NVRAM
Mount a USB thumbdrive as "sharename" on router.
Log into router using PuTTY.
To save: nvram get custom_clientlist > /tmp/mnt/sharename/custom_clientlist.txt
nvram get dhcp_staticlist > /tmp/mnt/sharename/dhcp_staticlist.txt
To restore: nvram set custom_clientlist="$(cat /tmp/mnt/sharename/custom_clientlist.txt)"
nvram set dhcp_staticlist="$(cat /tmp/mnt/sharename/dhcp_staticlist.txt)"
Please don't ask me about linux specifics. I don't know linux from a hole in the ground but I have become adept at hacking my way through a problem.
Hope this is of assistance to someone.
To save/restore custom_clientlist and dhcp_staticlist in NVRAM
Mount a USB thumbdrive as "sharename" on router.
Log into router using PuTTY.
To save: nvram get custom_clientlist > /tmp/mnt/sharename/custom_clientlist.txt
nvram get dhcp_staticlist > /tmp/mnt/sharename/dhcp_staticlist.txt
To restore: nvram set custom_clientlist="$(cat /tmp/mnt/sharename/custom_clientlist.txt)"
nvram set dhcp_staticlist="$(cat /tmp/mnt/sharename/dhcp_staticlist.txt)"
Please don't ask me about linux specifics. I don't know linux from a hole in the ground but I have become adept at hacking my way through a problem.
Hope this is of assistance to someone.