Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:troubleshooting:backup_restore [2021/10/06 09:47] – [Introduction] consolidate links vgaetera | docs:guide-user:troubleshooting:backup_restore [2023/01/17 10:56] – [Introduction] vgaetera | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| * This how-to describes the method for using OpenWrt file-level backup/ | * This how-to describes the method for using OpenWrt file-level backup/ | ||
| - | * Follow [[docs: | + | * Follow [[docs: |
| - | * Follow [[docs: | + | |
| * Follow [[docs: | * Follow [[docs: | ||
| + | * Follow [[docs: | ||
| * Extroot or additional overlay setups require extra measures. | * Extroot or additional overlay setups require extra measures. | ||
| ===== Goals ===== | ===== Goals ===== | ||
| - | * Provide an easy way to restore OpenWrt | + | * Back up and restore OpenWrt configuration. |
| ===== Web interface instructions ===== | ===== Web interface instructions ===== | ||
| Line 41: | Line 41: | ||
| cat << EOF >> / | cat << EOF >> / | ||
| / | / | ||
| - | / | + | / |
| EOF | EOF | ||
| Line 66: | Line 66: | ||
| ==== 3. Restore ==== | ==== 3. Restore ==== | ||
| Restore previously saved OpenWrt configuration from local PC. | Restore previously saved OpenWrt configuration from local PC. | ||
| + | Reboot to apply changes. | ||
| <code bash> | <code bash> | ||
| Line 74: | Line 75: | ||
| ls / | ls / | ||
| sysupgrade -r / | sysupgrade -r / | ||
| + | reboot | ||
| </ | </ | ||
| ===== Extras ===== | ===== Extras ===== | ||
| - | ==== Default backup | + | ==== Backup |
| - | The files preserved on system upgrade include the following locations: | + | Backup combines multiple sources and covers most configurations |
| - | * Listed by '' | + | |
| - | * Listed in ''/ | + | |
| - | * Listed in ''/ | + | |
| - | This should cover most configurations by default including the ones in ''/ | + | <code bash> |
| + | # Automatically detected modifications | ||
| + | opkg list-changed-conffiles | ||
| - | Note that the '' | + | # System configurations supplied by individual packages |
| + | grep -r -e . / | ||
| - | ==== Preserving packages ==== | + | # User configuration to edit if necessary |
| - | Manually removed/installed packages are not preserved by default. | + | grep -e . /etc/sysupgrade.conf |
| - | Use '' | + | # Obsolete settings no longer supported |
| - | + | uci show luci.flash_keep | |
| - | ==== Troubleshooting ==== | + | |
| - | List backup locations by configuration file. | + | |
| - | + | ||
| - | <code bash> | + | |
| - | grep -r -e . / | + | |
| </ | </ | ||