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/09/18 09:57] – [Command-line instructions] Import section from CLI upgrade someothertime | docs:guide-user:troubleshooting:backup_restore [2023/01/17 10:56] – [Introduction] vgaetera | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | * This how-to describes the method for performing | + | * This how-to describes the method for using OpenWrt file-level backup/ |
| - | * Make sure to [[docs: | + | * Follow |
| * Follow [[docs: | * Follow [[docs: | ||
| * Follow [[docs: | * Follow [[docs: | ||
| Line 10: | Line 10: | ||
| ===== Goals ===== | ===== Goals ===== | ||
| - | * Provide an easy way to restore OpenWrt | + | * Back up and restore OpenWrt configuration. |
| ===== Web interface instructions ===== | ===== Web interface instructions ===== | ||
| Line 33: | Line 33: | ||
| ===== Command-line instructions ===== | ===== Command-line instructions ===== | ||
| OpenWrt provides [[docs: | OpenWrt provides [[docs: | ||
| - | |||
| - | The default upgrade on command line will automatically preserve basic OpenWrt configuration by saving and then restoring configuration files in default locations (/ | ||
| - | * listed by '' | ||
| - | * listed within the text files in ''/ | ||
| - | * listed in ''/ | ||
| - | For your information: | ||
| - | |||
| - | Note that custom installed packages and their own configuration will not be preserved, so it may be necessary to document your programs and save the settings that will need to be re-installed or restored after the upgrade. There are scripts available to deal with that automatically. Use '' | ||
| ==== 1. Customize and verify ==== | ==== 1. Customize and verify ==== | ||
| Line 49: | Line 41: | ||
| cat << EOF >> / | cat << EOF >> / | ||
| / | / | ||
| - | / | + | / |
| EOF | EOF | ||
| Line 74: | 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 82: | Line 75: | ||
| ls / | ls / | ||
| sysupgrade -r / | sysupgrade -r / | ||
| + | reboot | ||
| </ | </ | ||
| - | ==== Debug ==== | + | ===== Extras |
| + | ==== Backup settings ==== | ||
| + | Backup combines multiple sources and covers most configurations by default. | ||
| <code bash> | <code bash> | ||
| - | grep . / | + | # Automatically detected modifications |
| + | opkg list-changed-conffiles | ||
| + | |||
| + | # System configurations supplied by individual packages | ||
| + | grep -r -e . / | ||
| + | |||
| + | # User configuration to edit if necessary | ||
| + | grep -e . / | ||
| + | |||
| + | # Obsolete settings no longer supported | ||
| + | uci show luci.flash_keep | ||
| </ | </ | ||
| + | |||