Skip to content

Instantly share code, notes, and snippets.

@startergo
Last active September 11, 2023 16:53
Show Gist options
  • Save startergo/899c1a0aa016a2d73c7598f77ace2ce9 to your computer and use it in GitHub Desktop.
Save startergo/899c1a0aa016a2d73c7598f77ace2ce9 to your computer and use it in GitHub Desktop.
OpenWRT create overlay backup and restore
  • SSH to your router. Create backup:
tar -cvzf /tmp/overlay.tar.gz /overlay
  • Copy the backup to a safe location:
scp -O [email protected]:/tmp/overlay.tar.gz ~/Downloads
  • After fresh install restore the backup:
scp -O ~/Downloads/overlay.tar.gz [email protected]:/tmp/
cd /; tar -xvzf /tmp/overlay.tar.gz
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment