1.9 KiB
1.9 KiB
OpenWrt Full Backup Web
Direct web panel for OpenWrt backup and restore. No OpenWrt buildroot package or .ipk build is required.
It installs:
/usr/sbin/owrt-full-backupcommand line helper;/www/cgi-bin/owrt-full-backupweb panel;/etc/config/fullbackupdefaults;/etc/owrt-full-backup/web.keysecret web key.
Target: OpenWrt 22.x, 23.x, 24.x and 25.x.
Install From Git
git clone https://github.com/kzolotarev95/openwrt-full-backup.git
cd openwrt-full-backup
sh install.sh
One-line install:
wget -O - https://raw.githubusercontent.com/kzolotarev95/openwrt-full-backup/main/install.sh | sh
The installer prints a private panel link:
http://192.168.1.1/cgi-bin/owrt-full-backup?key=SECRET
Keep this link private.
Web Panel
The panel can:
- create a full backup archive;
- download created archives;
- inspect an existing archive;
- restore configs;
- optionally reinstall saved package list;
- optionally restore overlay;
- optionally flash firmware image from the archive;
- save default backup settings.
Restore from the web panel does not reinstall packages unless you tick that checkbox.
Remove
From a cloned repo:
sh uninstall.sh
One-line remove:
wget -O - https://raw.githubusercontent.com/kzolotarev95/openwrt-full-backup/main/uninstall.sh | sh
Remove config and web key too:
wget -O - https://raw.githubusercontent.com/kzolotarev95/openwrt-full-backup/main/uninstall.sh | PURGE=1 sh
Backup archives are not deleted by uninstall.
CLI Examples
Create backup to USB:
owrt-full-backup create -o /mnt/usb
Include firmware image if it is already on the router:
owrt-full-backup create -o /mnt/usb --firmware-image /tmp/openwrt-sysupgrade.bin
Inspect backup:
owrt-full-backup inspect /mnt/usb/router-owrt-full-backup.tar.gz
Restore configs only:
owrt-full-backup restore /mnt/usb/router-owrt-full-backup.tar.gz --yes --no-packages