for nvram backup 'bout same thing you can do from the webif
nvram backup
nvram restore reboot
simple if you have a USB drive to send it to so you can easily get it to save or whatever.
you can just send to /tmp but then you gotta get it or lose it after a reboot
since I have a flash drive on this EA8500 mounted to /tmp/mnt/sda I just name it 'backupdate.bin' like so ---
nvram backup /tmp/mnt/sda/backup042320.bin
AFAIK you can name it whatever
since this is just a switch with a VLAN on 2 ports + an OVPN server I can play with it a bit so we'll see
if ssh nvram backup & restore still works
for nvram backup 'bout same thing you can do from the webif
nvram backup
nvram restore reboot
simple if you have a USB drive to send it to so you can easily get it to save or whatever.
you can just send to /tmp but then you gotta get it or lose it after a reboot
since I have a flash drive on this EA8500 mounted to /tmp/mnt/sda I just name it 'backupdate.bin' like so ---
nvram backup /tmp/mnt/sda/backup042320.bin
AFAIK you can name it whatever
since this is just a switch with a VLAN on 2 ports + an OVPN server I can play with it a bit so we'll see
if ssh nvram backup & restore still works
Thanks for the explanations.
I understand nvram backup but to do the restore I need to install the backup somewhere before? If I dont use usb, the backup needs to be in tmp?
The wget command line is still valid, I mean the ip address?
Yes, that still works just fine. I just done it from this Debian machine and it saved the 'nvrambak.bin'
in my 'Home' directory. I then used the GUI (webif) to restore and all is good.
of course you have to use correct router IP, username & password...below is all correct for this EA8500 ---
---reckon I should change its PW now but no worries cause that is the only PW and only unit I used it on
and besides it is within my local net
root@DD-WRT:~# wget http://192.168.11.1/nvrambak.bin -- user root -- password 6eV...........$$##
Connecting to 192.168.11.1 (192.168.11.1:80)
wget: server returned error: HTTP/1.1 401 Unauthorized
well it worky ok for me ...but then again, I am using a real Linux machine
my OS is naming them ‘nvrambak.bin’, ‘nvrambak.bin.1’, ‘nvrambak.bin.2’ just cause they are all piling in same directory
first one from WNDR3700v4DD-WRT r42954
2. from broadcom ASUS RT-N12D1DD-WRT r42925
3. from a pissy 4MB flash WNR2000v3DD-WRT r42708
and yea the PW has been xxxx out
::::::::::::::::::::::::::::::::::::::
nvrambak_r42967_EA8500_Linksys EA8500.bin ...same one I done SSH backup yesterday
nvrambak_r42967_Citadel-Station-Homeworld_Linksys EA8500.bin ... my main gateway router
---
EDIT:
the Asus RT-N12B is really an Asus RT-N12D1 I promise.
that just the way it is and you will also know that if you have one and/or been around here long as me
hmmm ok, let me swivel the chair around and see what the ol WIN10 Putty will do ... give me few minutes
:::::::::::::::::
if you use PuTTy do the 'nvram backup' ...looky like that works fine.
Since you don't have a USB you should put in the /tmp directory
Prolly have to use sompin like winscp to get it but I ain't gonna tell ya nothin about that... Better let winders users tell ya.
Code:
Using username "root".
Pre-authentication banner message from server:
| DD-WRT v3.0-r42967 std (c) 2020 NewMedia-NET GmbH
| Release: 04/21/20
| Board: Linksys EA8500
End of banner message from server
Authenticating with public key "mrjcd@mrjcd.com"
==========================================================
root@EA8500:~#
root@EA8500:~# cd /tmp/
root@EA8500:/tmp# ls
TZ board1.bin dnsmasq.conf loginprompt openvpn root www
ath0_configured board2.bin eap_identities mnt openvpnserver services
ath10k-board.bin cron.d etc nvram openvpnsrv_fw.sh smb.conf
ath1_configured disk hosts nvstate resolv.conf smb.db
blocklist disktype.dump ksmbd.lock oet resolv.dnsmasq var
root@EA8500:/tmp# cd
root@EA8500:~# nvram backup /tmp/backup042420.bin
root@EA8500:~# cd /tmp/
root@EA8500:/tmp# ls
TZ blocklist disktype.dump ksmbd.lock oet resolv.dnsmasq var
ath0_configured board1.bin dnsmasq.conf loginprompt openvpn root www
ath10k-board.bin board2.bin eap_identities mnt openvpnserver services
ath1_configured cron.d etc nvram openvpnsrv_fw.sh smb.conf
backup042420.bin disk hosts nvstate resolv.conf smb.db
root@EA8500:/tmp# exit
OR
I reckon you could enable JFFS2 and make it availible thru samba share and just grab it that way but that
seems like alot of mess to me.
Is there some reason you cannot use the webif since that is what it is made for
Joined: 04 Aug 2018 Posts: 1062 Location: Appalachian mountains, USA
Posted: Sat Apr 25, 2020 21:47 Post subject:
mrjcd wrote:
Is there some reason you cannot use the webif since that is what it is made for
Scripting. I have long had the backup process automated so that in the bash window I keep open on my laptop, I type bu 12 and the script backs up into my laptop's current working directory the dd-wrt config and the output of nvram show into files with .12 appended as a version number corresponding to notes I keep on each version. The script uses ssh and scp. Optional arguments let me use multiple layers of encryption to back up or restore any of a handful of routers in my care that live far away, across the internet, and that are set up to permit extremely tightened-down (securitywise) maintenance connections.
So the question feels a bit like asking why one can't just use Windows and do everything one click at a time? Why fool with that gosh-darned (!) linux thingy? Why write the math-laden paper with latex? Why can't you use WORD like everyone else? Why drive an MX-5 Miata? (I don't, but it's an example.) Why eat chocolate? (I do.) Why fuss with dd-wrt? Isn't the stock Netgear firmware good enough?
Oh wait... _________________ Five WRT1900ACSv2's on 42926, 44048.
VLANs, VAPs, NAS, client-mode travel router, OpenVPN client (AirVPN), DDNS, wireguard servers, wireguard clients (AzireVPN), two DNSCrypt DNS providers (incl Quad9) via OpenVPN/wireguard clients.