OpenWRT backup
List the files that would be backed up when calling sysupgrade -b:
sysupgrade -l
Create a .tgz backup:
sysupgrade -b backup-$(date +%Y-%m-%d-%H:%M:%S).tgz
Install openssh-sftp-server to download the backup file on the laptop:
opkg update
opkg install openssh-sftp-server
Then download the backup file:
scp _gateway:backup-\*.tgz .
List packages installed after flashing:
wget \
https://gist.githubusercontent.com/cvladan/898c3ad14c5ba31806a131ae6bf39e28/raw/list-my-packages-proper-concept.sh \
-O - | sh