Skip to content
Contents
GuidesOpenWrt

Does an OpenWrt backup contain Wi-Fi and PPPoE passwords? Check without printing them

A normal tar.gz backup has no encryption. In an OpenWrt 25.12.6 VM we set two dummy values. Both matched the original text inside the sysupgrade archive. You can check your own file by counting lines.

A normal tar.gz backup has no encryption. In an OpenWrt 25.12.6 VM we set two dummy values. Both matched the original text inside the sysupgrade archive. You can check your own file by counting lines.

Check the actual archive

Use a trusted terminal with command tracing off. The screenshot includes creation of a test archive. For an existing backup, substitute its path below. LuCI offers downloads under System, Backup / Flash Firmware. Stop on any read or integrity error. Match member paths exactly.

f=./backup.tar.gz
gzip -t "$f" && tar -tzf "$f" | grep -E '(^|/)etc/config/(network|wireless)$' 

OpenWrt 25.12.6 · sysupgrade -b · etc/config/network · etc/config/wireless

Print counts only

The first command counts wireless key lines. The second counts password lines across all network interfaces. Check proto privately in the same section to identify PPPoE. The final two checks in the screenshot use dummy strings. Keep real passwords out of commands and shell history.

tar -xOzf "$f" etc/config/wireless |
  grep -Ec '^[[:space:]]*option[[:space:]]+key[[:space:]]'
tar -xOzf "$f" etc/config/network |
  grep -Ec '^[[:space:]]*option[[:space:]]+password[[:space:]]' 

SSH · key = 1 · password = 1 · DEMO_WIFI_ONLY · DEMO_PPP_ONLY

Even zero needs care

A positive count includes matching lines with empty values. Zero can miss other formats, paths or files. Consider nested archives, VPN keys and certificates. Encrypt the recovery copy and share only a manually redacted excerpt.

If you shared the archive, revoke access and rotate exposed credentials. Coordinate PPPoE changes with your provider. Verify Wi-Fi reconnection and a WAN address before making a fresh backup.

OpenWrt sysupgrade.conf: keep custom scripts and verify the backup

Explore hardware

Comments