Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:troubleshooting:backup_restore [2021/09/28 02:45] – [Debugging] vgaeteradocs: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 OpenWrt file-level backup/restore. +  * This how-to describes the method for using OpenWrt file-level backup/restore. 
-  * Make sure to [[docs:guide-user:installation:generic.sysupgrade#savingrestoring_user-installed_packages|save and restore user-installed packages]].+  * Follow [[docs:guide-user:installation:sysupgrade.packages|Preserving packages]] to back up user-removed/installed packages.
   * Follow [[docs:guide-quick-start:admingui_sysupgrade_keepsettings|Preserving configuration]] to determine whether to keep the settings.   * Follow [[docs:guide-quick-start:admingui_sysupgrade_keepsettings|Preserving configuration]] to determine whether to keep the settings.
   * Follow [[docs:guide-user:installation:generic.backup|Generic backup]] for block-level backup/restore.   * Follow [[docs:guide-user:installation:generic.backup|Generic backup]] for block-level backup/restore.
   * Extroot or additional overlay setups require extra measures.   * Extroot or additional overlay setups require extra measures.
-  * In some cases full backup restore across major versions is not possible [[docs:guide-quick-start:admingui_sysupgrade_keepsettings#upgrade_compatibility|Keep Settings and Upgrade Compatibility]] 
  
 ===== Goals ===== ===== Goals =====
-  * Provide an easy way to restore OpenWrt to the previous configuration state.+  * Back up and restore OpenWrt configuration.
  
 ===== Web interface instructions ===== ===== Web interface instructions =====
Line 42: Line 41:
 cat << EOF >> /etc/sysupgrade.conf cat << EOF >> /etc/sysupgrade.conf
 /etc/sudoers /etc/sudoers
-/etc/sudoers.d/+/etc/sudoers.d
 EOF EOF
  
Line 67: 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 75: Line 75:
 ls /tmp/backup-*.tar.gz ls /tmp/backup-*.tar.gz
 sysupgrade -r /tmp/backup-*.tar.gz sysupgrade -r /tmp/backup-*.tar.gz
 +reboot
 </code> </code>
  
 ===== Extras ===== ===== Extras =====
-==== Default backup settings ==== +==== Backup settings ==== 
-The files preserved on system upgrade include the following locations: +Backup combines multiple sources and covers most configurations by default.
-    * Listed by ''opkg list-changed-conffiles''+
-    * Listed in ''/lib/upgrade/keep.d'' supplied by individual packages. +
-    * Listed in ''/etc/sysupgrade.conf'' which can be customized by the user.+
  
-This should cover most configurations by default including the ones in ''/etc/config''.+<code bash> 
 +# Automatically detected modifications 
 +opkg list-changed-conffiles
  
-Note that the ''flash_keep'' section of the ''luci'' configuration is obsolete and no longer supported.+# System configurations supplied by individual packages 
 +grep -r -e /lib/upgrade/keep.d
  
-==== Preserving packages ==== +# User configuration to edit if necessary 
-Manually removed/installed packages are not preserved by default.+grep -e . /etc/sysupgrade.conf
  
-Use ''sysupgrade -k'' or [[docs:guide-user:advanced:opkg_extras|Opkg extras]] to include manually removed/installed packages in your backup. +# Obsolete settings no longer supported 
- +uci show luci.flash_keep
-==== Troubleshooting ==== +
-List backup locations by configuration file. +
- +
-<code bash> +
-grep -r -e . /lib/upgrade/keep.d /etc/sysupgrade.conf+
 </code> </code>
  
  • Last modified: 2024/04/28 11:01
  • by silejonu