OpenWrt/Backup & Upgrade

OpenWrt/Backup & Upgrade

/etc/sysupgrade.conf

此文件定义 OpenWrt 升级时保留哪些目录文件。这些文件也会被(额外)包含在 OpenWrt export data 导出的压缩包里。

## This file contains files and directories that should
## be preserved during an upgrade.

/root/files
/root/.ssh
/root/.config
/root/.profile
/etc/config/zerotier
/etc/dropbear/authorized_keys
/etc/hotplug.d/iface/60-custom
/etc/openclash/core

其它系统配置 (建议手动还原)

/etc/opkg.conf

如果挂载了 u盘并将 package 安装到 u 盘里目录,那么可能会在 opkg.conf 里配置 opkg 的安装目录(dest):

dest ext /root/storage/rootfs

以上配置则 opkg install python3 -d ext 会将软件包安装到 /root/storage/rootfs 目录(而不是 / )下。


Last update: 2020-12-30 07:50:09 UTC