Posted: Sun May 26, 2019 21:25 Post subject: nvram show equivalent to GUI backup settings
Is executing 'nvram show' to a file the equivalent to making a configuration backup file from the GUI?
I'd like to set up a job to export settings from the terminal to backup configuration settings that I can use to restore my settings if they ever get corrupted/lost.
I compared the .bin file the GUI exports and it looks very similar to 'nvram show' but I want to be sure. _________________ R7800 AP WDS - OpenWrt SNAPSHOT r16941
R7800 Client WDS - OpenWrt SNAPSHOT r16941
R7000 CB - r46949 std
PiHole v5.3.1 - dnscrypt-proxy 2.0.45 - RPi 3 B+
Synology DS220+ - DSM 7 RC
This worked perfect thanks. It exports the same binary the GUI does as you said. _________________ R7800 AP WDS - OpenWrt SNAPSHOT r16941
R7800 Client WDS - OpenWrt SNAPSHOT r16941
R7000 CB - r46949 std
PiHole v5.3.1 - dnscrypt-proxy 2.0.45 - RPi 3 B+
Synology DS220+ - DSM 7 RC
Joined: 16 Nov 2015 Posts: 6437 Location: UK, London, just across the river..
Posted: Tue May 28, 2019 12:56 Post subject:
Wildlion wrote:
you could execute:
nvram backup {filename}
nvram restore {filename}
that is all the gui does
tried this on 1043 v2 with no avail either its not working or im not aware what it does and how to spell it
nvram backup {1043v2backup} - not working
nvram backup {filename} - not working
nvram backup 1043v2 - not working...
how it's suppose to work?? It was not asking where to save file at all, is the file saved somewhere else, already checked cd/tmp ...nothing there _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Thanks, may I know how we can add the reversion number to the file name?
something similar to this - nvrambak_r47381_DD-WRT-C2_Netgear R7000.bin _________________ Netgear R7000
(Latest SVN revision)
Joined: 16 Nov 2015 Posts: 6437 Location: UK, London, just across the river..
Posted: Mon Sep 13, 2021 6:57 Post subject:
save nvram backup via CLI
nvram backup /opt/1043v2.bin
restore nvram back up via CLI
nvram restore /opt/1043v2.bin
replace 1043v2 with any name you want...must have .bin at the end
replace /opt with any location you need...
do notice...name is not needed to be that long anyway...i use something like 1043v2-47381.bin _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
something like this ?
at least the backups on my R7800 look like this
or
Code:
root@DD-WRT:/tmp# echo "nvrambak_r$(nvram get os_version)_$(nvram get router_name)_$(nvram get DD_BOARD).bin"
nvrambak_r47381_DD-WRT_Netgear R7800.bin
Code:
root@DD-WRT:/tmp# nvram backup "nvrambak_r$(nvram get os_version)_$(nvram get router_name)_$(nvram get DD_BOARD).bin"
or for continuous automatic backups
Code:
root@DD-WRT:~# echo "nvrambak_r$(nvram get os_version)_$(nvram get router_name)_$(nvram get DD_BOARD)_$(date +%F).bin"
nvrambak_r47381_DD-WRT_Netgear R7800_2021-09-13.bin
Code:
root@DD-WRT:/tmp# nvram backup "nvrambak_r$(nvram get os_version)_$(nvram get router_name)_$(nvram get DD_BOARD)_$(date +%F).bin"