A service may depend on a custom script, a certificate or an external volume. List what the service needs, then compare that list with the archive you actually created. Back up and verify application data on external volumes separately.
A custom script may require extra packages. Keep a separate package list, reinstall dependencies from the feeds for the target firmware and recheck script permissions after restoration. Handle caches, large data volumes and key backups separately. Avoid including an entire external volume or a second key backup in your configuration archive.
List the selected files on the router and create a fresh archive
Run these commands over SSH. Check that temporary storage has enough room and that directory creation succeeds. Stop if it fails. The example uses a unique directory and restrictive permissions to protect existing backups. Transfer the resulting tar.gz file to a trusted computer and check that it opens.
df -h /tmp
umask 077
auditdir=$(mktemp -d /tmp/backup-check.XXXXXX) && sysupgrade -b "$auditdir/config.tar.gz" && printf '%s\n' "$auditdir/config.tar.gz"
You can also download a configuration archive from the system backup page in LuCI. List member names on your computer and look for the exact path. Archive member names often omit the leading slash. For a missing persistent file, run the first command below on the router to inspect the candidate list. Add the absolute path to /etc/sysupgrade.conf, then generate and download another backup. Run the second command on the downloaded file on your computer.
sysupgrade -l
tar -tzf config.tar.gz
Compare both archives and verify the service
Two archives were created on isolated OpenWrt 25.12.6. The first omitted a synthetic marker, the second included it, and the original backup policy was then restored. The names and directory below belong to the experiment. On your computer use your own two archives and the expected path, listing names only.
cd /tmp/gm61
tar -tzf before.tar.gz | grep gm61-marker || echo absent-before
tar -tzf after.tar.gz | grep gm61-marker
cmp -s original /etc/sysupgrade.conf && echo configuration-restored
sysupgrade -l | grep gm61-marker || echo absent-from-new-list

Treat a missing match as an absent file only after tar has successfully read the entire archive. If reading fails, copy or create the archive again. On compatible spare hardware, restore the required files, check ownership, permissions and dependencies, then use the service from a client. Without a spare, record which members were verified and leave restoration and service testing for a maintenance window.
Which home network services can you restore in ten minutes on a spare router?
Comments