Currently translated at 29.5% (26 of 88 strings) Translation: OpenWrt/LuCI/applications/mosquitto Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmosquitto/zh_Hans/ Translated using Weblate (Lithuanian) Currently translated at 84.0% (163 of 194 strings) Translated using Weblate (Persian) Currently translated at 99.6% (279 of 280 strings) Translated using Weblate (Persian) Currently translated at 100.0% (66 of 66 strings) Translation: OpenWrt/LuCI/applications/attendedsysupgrade Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsattendedsysupgrade/fa/ Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (38 of 38 strings) Translation: OpenWrt/LuCI/applications/advanced-reboot Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadvanced-reboot/zh_Hans/ Translated using Weblate (Chinese (Simplified)) Currently translated at 99.4% (2358 of 2370 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/ Translated using Weblate (Ukrainian) Currently translated at 9.8% (8 of 81 strings) Translation: OpenWrt/LuCI/applications/email Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsemail/uk/ Translated using Weblate (Georgian) Currently translated at 55.0% (154 of 280 strings) Translated using Weblate (Lithuanian) Currently translated at 72.6% (141 of 194 strings) Translated using Weblate (Ukrainian) Currently translated at 12.5% (16 of 127 strings) Translation: OpenWrt/LuCI/applications/pbr Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspbr/uk/ Translated using Weblate (Ukrainian) Currently translated at 80.6% (50 of 62 strings) Translation: OpenWrt/LuCI/applications/acme Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/uk/ Translated using Weblate (Ukrainian) Currently translated at 31.8% (14 of 44 strings) Translation: OpenWrt/LuCI/applications/ser2net Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsser2net/uk/ Translated using Weblate (Ukrainian) Currently translated at 55.5% (10 of 18 strings) Translation: OpenWrt/LuCI/applications/nextdns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnextdns/uk/ Translated using Weblate (Ukrainian) Currently translated at 8.0% (15 of 186 strings) Translation: OpenWrt/LuCI/applications/unbound Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsunbound/uk/ Translated using Weblate (Ukrainian) Currently translated at 100.0% (17 of 17 strings) Translation: OpenWrt/LuCI/applications/udpxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsudpxy/uk/ Translated using Weblate (Ukrainian) Currently translated at 18.2% (15 of 82 strings) Translation: OpenWrt/LuCI/applications/shadowsocks-libev Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/uk/ Translated using Weblate (Ukrainian) Currently translated at 8.8% (11 of 125 strings) Translation: OpenWrt/LuCI/applications/privoxy Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsprivoxy/uk/ Translated using Weblate (Ukrainian) Currently translated at 21.1% (36 of 170 strings) Translation: OpenWrt/LuCI/applications/mwan3 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/uk/ Translated using Weblate (Ukrainian) Currently translated at 18.3% (9 of 49 strings) Translation: OpenWrt/LuCI/applications/mjpg-streamer Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmjpg-streamer/uk/ Translated using Weblate (Ukrainian) Currently translated at 48.3% (15 of 31 strings) Translation: OpenWrt/LuCI/applications/dynapoint Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdynapoint/uk/ Translated using Weblate (Ukrainian) Currently translated at 7.1% (4 of 56 strings) Translation: OpenWrt/LuCI/applications/dump1090 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdump1090/uk/ Translated using Weblate (Ukrainian) Currently translated at 10.6% (26 of 244 strings) Translation: OpenWrt/LuCI/applications/banip Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/uk/ Translated using Weblate (Ukrainian) Currently translated at 18.4% (31 of 168 strings) Translation: OpenWrt/LuCI/applications/aria2 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsaria2/uk/ Translated using Weblate (Ukrainian) Currently translated at 100.0% (177 of 177 strings) Translation: OpenWrt/LuCI/applications/adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/uk/ Translated using Weblate (Ukrainian) Currently translated at 32.9% (65 of 197 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/uk/ Translated using Weblate (Ukrainian) Currently translated at 13.6% (6 of 44 strings) Translated using Weblate (Ukrainian) Currently translated at 15.6% (16 of 102 strings) Translated using Weblate (Ukrainian) Currently translated at 16.3% (30 of 183 strings) Translated using Weblate (Ukrainian) Currently translated at 17.8% (67 of 376 strings) Translated using Weblate (Spanish) Currently translated at 5.4% (4 of 74 strings) Translation: OpenWrt/LuCI/applications/xinetd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsxinetd/es/ Translated using Weblate (Spanish) Currently translated at 21.7% (10 of 46 strings) Translation: OpenWrt/LuCI/applications/xfrpc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsxfrpc/es/ Translated using Weblate (Spanish) Currently translated at 90.9% (60 of 66 strings) Translation: OpenWrt/LuCI/applications/sshtunnel Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssshtunnel/es/ Translated using Weblate (Lithuanian) Currently translated at 65.4% (127 of 194 strings) Translated using Weblate (Spanish) Currently translated at 85.4% (41 of 48 strings) Translation: OpenWrt/LuCI/applications/openwisp Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenwisp/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (40 of 40 strings) Translation: OpenWrt/LuCI/applications/example Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsexample/es/ Translated using Weblate (Spanish) Currently translated at 71.2% (141 of 198 strings) Translation: OpenWrt/LuCI/applications/smartdns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssmartdns/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (62 of 62 strings) Translation: OpenWrt/LuCI/applications/acme Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsacme/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (89 of 89 strings) Translation: OpenWrt/LuCI/applications/frpc Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfrpc/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (25 of 25 strings) Translation: OpenWrt/LuCI/applications/ksmbd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsksmbd/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (177 of 177 strings) Translation: OpenWrt/LuCI/applications/adblock Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (82 of 82 strings) Translation: OpenWrt/LuCI/applications/shadowsocks-libev Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsshadowsocks-libev/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (7 of 7 strings) Translation: OpenWrt/LuCI/applications/squid Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssquid/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (40 of 40 strings) Translation: OpenWrt/LuCI/applications/clamav Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsclamav/es/ Translated using Weblate (Spanish) Currently translated at 33.6% (82 of 244 strings) Translation: OpenWrt/LuCI/applications/banip Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsbanip/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (26 of 26 strings) Translation: OpenWrt/LuCI/applications/dcwapd Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsdcwapd/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (170 of 170 strings) Translation: OpenWrt/LuCI/applications/mwan3 Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsmwan3/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (195 of 195 strings) Translation: OpenWrt/LuCI/applications/travelmate Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstravelmate/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (197 of 197 strings) Translation: OpenWrt/LuCI/applications/ddns Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsddns/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (124 of 124 strings) Translation: OpenWrt/LuCI/applications/nlbwmon Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsnlbwmon/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (62 of 62 strings) Translation: OpenWrt/LuCI/applications/ocserv Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsocserv/es/ Translated using Weblate (Spanish) Currently translated at 100.0% (113 of 113 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (46 of 46 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (51 of 51 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (183 of 183 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (37 of 37 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (33 of 33 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (62 of 62 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (280 of 280 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (58 of 58 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (37 of 37 strings) Translated using Weblate (Polish) Currently translated at 100.0% (2370 of 2370 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/ Translated using Weblate (Spanish) Currently translated at 94.9% (2250 of 2370 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/ Translated using Weblate (Russian) Currently translated at 100.0% (2370 of 2370 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/ Translated using Weblate (Spanish) Currently translated at 100.0% (164 of 164 strings) Translation: OpenWrt/LuCI/applications/adblock-fast Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock-fast/es/ Translated using Weblate (Lithuanian) Currently translated at 47.2% (35 of 74 strings) Translated using Weblate (Lithuanian) Currently translated at 56.8% (33 of 58 strings) Translated using Weblate (Lithuanian) Currently translated at 98.6% (371 of 376 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (51 of 51 strings) Translated using Weblate (Spanish) Currently translated at 97.2% (36 of 37 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (194 of 194 strings) Translated using Weblate (Spanish) Currently translated at 99.6% (279 of 280 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (83 of 83 strings) Translated using Weblate (Spanish) Currently translated at 96.2% (362 of 376 strings) Translated using Weblate (Polish) Currently translated at 100.0% (2370 of 2370 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/ Translated using Weblate (Spanish) Currently translated at 94.9% (2250 of 2370 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/ Translated using Weblate (Spanish) Currently translated at 94.9% (2250 of 2370 strings) Translation: OpenWrt/LuCI/modules/luci-base Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/ Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com> Co-authored-by: Džiugas J <dziugas1959@hotmail.com> Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com> Co-authored-by: Hosted Weblate <hosted@weblate.org> Co-authored-by: Matthaiks <kitynska@gmail.com> Co-authored-by: Salvador Peña <salvadorp74@hotmail.com> Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com> Co-authored-by: gallegonovato <fran-carro@hotmail.es> Co-authored-by: huang207 <huang207a@outlook.com> Co-authored-by: st7105 <st7105@gmail.com> Co-authored-by: try496 <pinghejk@gmail.com> Co-authored-by: Єгор Филенко <efilenko74@gmail.com> Signed-off-by: Danial Behzadi <dani.behzi@ubuntu.com> Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com> Signed-off-by: Matthaiks <kitynska@gmail.com> Signed-off-by: Salvador Peña <salvadorp74@hotmail.com> Signed-off-by: gallegonovato <fran-carro@hotmail.es> Signed-off-by: huang207 <huang207a@outlook.com> Signed-off-by: st7105 <st7105@gmail.com> Signed-off-by: try496 <pinghejk@gmail.com> Signed-off-by: Єгор Филенко <efilenko74@gmail.com> Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsahcp/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/fa/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfirewall/ka/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsfwknopd/uk/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsminidlna/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsolsr/uk/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopenvpn/lt/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsopkg/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspolipo/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspolipo/lt/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsradicale2/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssamba4/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/lt/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsstatistics/uk/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstinyproxy/lt/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstransmission/uk/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsuhttpd/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsupnp/es/ Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationswatchcat/es/ Translation: OpenWrt/LuCI/applications/ahcp Translation: OpenWrt/LuCI/applications/firewall Translation: OpenWrt/LuCI/applications/fwknopd Translation: OpenWrt/LuCI/applications/minidlna Translation: OpenWrt/LuCI/applications/olsr Translation: OpenWrt/LuCI/applications/openvpn Translation: OpenWrt/LuCI/applications/opkg Translation: OpenWrt/LuCI/applications/polipo Translation: OpenWrt/LuCI/applications/radicale2 Translation: OpenWrt/LuCI/applications/samba4 Translation: OpenWrt/LuCI/applications/statistics Translation: OpenWrt/LuCI/applications/tinyproxy Translation: OpenWrt/LuCI/applications/transmission Translation: OpenWrt/LuCI/applications/uhttpd Translation: OpenWrt/LuCI/applications/upnp Translation: OpenWrt/LuCI/applications/watchcat |
||
---|---|---|
.. | ||
htdocs/luci-static/resources | ||
po | ||
root | ||
Makefile | ||
README.md |
Backups
The backup scheme implemented in /etc/init.d/luci_statistics
aims to
limit writes to stable storage, to preserve flash memory lifetime.
(Flash-memory based routers may have limited lifetime of write cycles,
we want to conserve those.) While it would be simpler to run a periodic
backup as a cron job, you'd risk wearing out the flash memory. This
scheme only writes backups to flash during shutdowns/reboots and
upgrades.
The backup is only enabled if the administrator sets
luci_statistics.collectd_rrdtool.backup=1
.
We only want to restore a sysupgrade backup file if:
-
It was installed by
sysupgrade -r
(restore configuration files), and we have rebooted. In this case, there is an orderly shutdown that calls the shutdown methods. We do not want to overwrite the restored sysupgrade backup file during shutdown, but after reboot we do want to restore it. -
It was generated during a true sysupgrade, and we are rebooting into the new image:
sysupgrade
with any or none of-o
,-c
,-f
,-u
, resulting in a new image being installed and a config file being preserved for processing after reboot. In this case we do not want to overwrite the backup while rebooting during the upgrade.sysupgrade
in this case stores a.tgz
archive of all preserved files where it can be found after rebooting into the new image, and it does not run the shutdown scripts before rebooting.
When the administrator runs sysupgrade -b
(command line or LuCI), we
create a sysupgrade backup file and it is included in the combined
backup. Then the system continues running. When we later stop or
restart or reboot (orderly conditions, when
/etc/init.d/luci_statistics
is called to shut down), we do not want to
use the saved sysupgrade backup. If we had a control path after
sysupgrade -b
that would allow us to remove the sysupgrade backup, this
would be simple. But we don't!
What we can do is arrange that a sysupgrade backup contains enough information to indicate if it should be restored.
-
True sysupgrade is straightforward: we arrange that the backed-up file list only includes the sysupgrade backup file and one twin file (see below). The next starting of
/etc/init.d/luci_statistics
after a sysupgrade will restore the sysupgrade backup. -
Continued system operation after
sysupgrade -b
: next time we stop the service (during reboot or during other init script actions), we check for a stale sysupgrade backup, and if we detect it we remove it. -
sysupgrade -r
only unpacks the backup files, it does not erase other non-backed-up files still in the overlay. Its intended use is to then immediately reboot, which will run an orderly shutdown/normal backup. We must ensure the orderly shutdown in this case preserves the sysupgrade backup, unlike the previous case.
To implement these cases, we use a pair of twinned files, only one of which is included in the list of files preserved by sysupgrade. If we detect mismatched files (or only one file present) during service shutdown or startup, we trust that the sysupgrade backup should be kept and restored. If the files are matched, that indicates that we have not restored files since the sysupgrade backup, and the current normal backup should be used instead.
During sysupgrade backup
/etc/init.d/luci_statistics sysupgrade_backup
is invoked by sysupgrade
for true upgrade or for the -l
or -b
flags. We detect the list flag
(-l
) by checking the process environment, and if found, we only
generate a list: we don't actually do a backup. For all cases, we edit
the list of files listed already and remove any other mentions of
/etc/luci_statistics
to ensure that only the backup file and one of
the twin files is in the backup list.
During sysupgrade
During a true sysupgrade, only the sysupgrade backup file and one of the twin files is restored after the image reboots, so the first running of startup scripting will restore the sysupgrade backup. This could be at the time of first boot, if the image has been built to include this package, or it could be later when the package is downloaded, installed, and the service is started.
During backup (including orderly shutdown)
During backup (run during shutdown), if there is a matched set of twins,
then we know that sometime since the last service start the
administrator ran sysupgrade -b
and had the chance to copy the
resulting backup. We can now erase the twins and the sysupgrade backup.
If there is a mismatched set of twins, then someone restored a backup
such as with sysupgrade -r
and we should now be rebooting, so we
should leave the sysupgrade files alone to be processed on service
restart (after reboot).
If someone takes a sysupgrade -b
backup and then restores it before
they reboot or restart statistics, the twins will still match, and we
then don't keep the statistics from the restored backup, we instead take
a new backup from current data and use that on reboot.
During startup
If there are matched twin files (the normal case for shutdown/reboot without sysupgrade), then the sysupgrade backup is ignored and the regular backup is restored. If there are mismatched twin files, then the sysupgrade backup is restored.
During disorderly reboot
In a system crash or other disorderly reboot, the shutdown scripts do
not run. What remains on the system is the previous contents of
/etc/luci_statistics
.
-
If the system never started luci_statistics, or it was cleanly shut down before the crash, then there is no difference in behavior from normal startup: we restore either the sysupgrade backup (if luci_statistics had never run) or the regular backup (if luci_statistics was cleanly stopped)
-
If luci_statistics and collectd were running at the time of the crash, there could be a regular backup and a sysupgrade backup present, plus volatile data in /tmp (which are lost in the crash). The regular backup would be from the most recent time the system cleanly stopped luci_statistics. During the subsequent reboot/service start up:
-
If there is a sysupgrade backup on disk from having run
sysupgrade -b
, with both twin files matching (meaning the administrator had taken a backup sometime during the life of the system, before the crash), they are ignored and a regular backup (if any) is restored. -
If the sysupgrade backup has mismatched twin files or only one twin, then it is used to restore state. This would be the case if a sysupgrade restored configuration (
sysupgrade -r
), whether or not it did an orderly shutdown/reboot, or if the file system were damaged in a crash and only one of the twin files survived.
-