admin-full/admin-mini: Fixed backup module
This commit is contained in:
parent
2d3f2a9eaa
commit
f5d4157cab
3 changed files with 13 additions and 10 deletions
|
@ -10,12 +10,11 @@ config core brand
|
||||||
option distro "Development Snapshot"
|
option distro "Development Snapshot"
|
||||||
|
|
||||||
config extern flash_keep
|
config extern flash_keep
|
||||||
option uci "/etc/config"
|
option uci "/etc/config/"
|
||||||
option dropbear "/etc/dropbear"
|
option dropbear "/etc/dropbear/"
|
||||||
option openvpn "/etc/openvpn"
|
option openvpn "/etc/openvpn/"
|
||||||
option passwd "/etc/passwd"
|
option passwd "/etc/passwd"
|
||||||
option ipkg "/etc/ipkg.conf"
|
option opkg "/etc/opkg.conf"
|
||||||
option httpd "/etc/httpd.conf"
|
|
||||||
option firewall "/etc/firewall.user"
|
option firewall "/etc/firewall.user"
|
||||||
|
|
||||||
config internal languages
|
config internal languages
|
||||||
|
|
|
@ -223,8 +223,10 @@ function _keep_pattern()
|
||||||
if files then
|
if files then
|
||||||
kpattern = ""
|
kpattern = ""
|
||||||
for k, v in pairs(files) do
|
for k, v in pairs(files) do
|
||||||
|
if k:sub(1,1) ~= "." and luci.fs.glob(v) then
|
||||||
kpattern = kpattern .. " " .. v
|
kpattern = kpattern .. " " .. v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return kpattern
|
return kpattern
|
||||||
end
|
end
|
||||||
|
|
|
@ -120,8 +120,10 @@ function _keep_pattern()
|
||||||
if files then
|
if files then
|
||||||
kpattern = ""
|
kpattern = ""
|
||||||
for k, v in pairs(files) do
|
for k, v in pairs(files) do
|
||||||
|
if k:sub(1,1) ~= "." and luci.fs.glob(v) then
|
||||||
kpattern = kpattern .. " " .. v
|
kpattern = kpattern .. " " .. v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return kpattern
|
return kpattern
|
||||||
end
|
end
|
Loading…
Reference in a new issue