Ergebnis 1 bis 5 von 5
  1. #1
    Mitglied
    Registriert seit
    09.07.2020
    Beiträge
    32
    Thanks (gegeben)
    0
    Thanks (bekommen)
    2
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke

    Backup sys settings and image from CLI

    I have 3 pieces of Zgemma working with OpenATV. I do not use Multiboot in any of the receivers. The process of manual update/upgrade, backup of system settings and creating a backup image of the system, performed from the remote control via GUI, is "annoying", especially as it has to be done regularly on 3 devices.
    Therefore, I would like to automate this process. At the moment, once a week with cron I run a system update / upgrade and then reload the device.
    After that, however, I would like to backup the system settings and make the current system image. The resulting files would be loaded onto the Google drive.
    My assumption is to keep 4 copies (from 4 consecutive weeks) in case there is a bug in the OpenATV repository again.
    Of course, I can do the issue of creating system settings and a system image myself. But in Enigma2 there are some ready-made commands/procedures which when run will create the above-mentioned files on HDD or SD.
    Question. How can I run these procedures (what syntax) from the CLI instead of the OpenATV GUI?
    Geändert von mackowiakp (23.09.2020 um 06:05 Uhr)

    •   Alt Advertising

       

  2. #2
    Senior Mitglied Avatar von s3n0
    Registriert seit
    02.01.2017
    Ort
    Slovakia
    Beiträge
    1.463
    Thanks (gegeben)
    91
    Thanks (bekommen)
    420
    Total Downloaded
    323,0 KB
    Total Downloaded
    323,0 KB
    ReceiverDanke
    Box 1:
    Vu+ Zero 4K
     
     
    Box 2:
    Vu+ Solo SE V2
     
     
    Box 3:
    Formuer F4-TURBO
     
     
    Hi. Update via the command line / Shell works nice, but I'm not sure if the update / overwrite of old files in the case of SKIN is solved. OpenATV uses some add-ons / settings in the SKIN and will be rewrited during the update and must be backed up before the SKIN is updated and must not be rolled back after the SKIN is updated / overwritten. Perhaps this is already solved in the update via Shell directly in the SKIN packages (OPKG tool), and not only in the GUI update. Updating via Shell is very simple, for example:

    Code:
    #!/bin/bash
    
    init 4; sleep 5           # stop the Enigma... and waiting 5 seconds for Enigma to stop completely
    opkg update && opkg upgrade
    init 3; sleep 120         # start the Enigma... and waiting 120 sec. for the complete Enigma to start
    
    wget -q -O - http://127.0.0.1/api/powerstate?newstate=5 > /dev/null 2>&1       # switch Enigma2 to Standby, because at startup Enigma2 is usually run in "online" mode
    
    exit 0

    As far as backup is concerned, in my opinion it is enough to back up only the Enigma configuration, icons and your own add-ons (softcam configuration directory, softcam binary, additional third party plugins that you will not find on the OpenATV feed server, etc.). For this purpose, I personally use my shell-script (it is necessary to edit the directory and files to back up):
    - script preview: e2scripts/backrest at master * s3n0/e2scripts * GitHub
    - script download: https://github.com/s3n0/e2scripts/raw/master/backrest


    It is also possible to create a function for the shell-script that will control the RCU via the OpenWebif interface. It is possible to do so. But first you have to wake up Enigma from Standby, artificially send the "RCU button press" to OpenWebif (Enigma updates and subsequent Enigma image backup) and then activate Standby mode again. However, this is inefficient (in case of any error, the script will still send button codes via openwebif and ignore errors and this can be undesirable).


    Shell scripts can be run scheduled via the Linux CRON service (scheduled tasks in OpenATV can be found in this file: "/etc/cron/crontabs/root").

  3. Thanks Heart bedankten sich
  4. #3
    Mitglied
    Registriert seit
    09.07.2020
    Beiträge
    32
    Thanks (gegeben)
    0
    Thanks (bekommen)
    2
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Yes, but my Zgemma, apart from being a satellite receiver, does a few more things. These are add-ons written by me and working next to Enigma2 and not interfering with its work. Well, unless by WEB API Enigma2. I take advantage of the fact that the Sat receiver "gets bored" most of the time and its resources are wasted. And it does almost nothing while in standby mode.
    Hence, I need to backup the entire system image, so as to possibly restore the entire system, not only the Enigma configuration. It is possible?

  5. #4
    Senior Mitglied Avatar von s3n0
    Registriert seit
    02.01.2017
    Ort
    Slovakia
    Beiträge
    1.463
    Thanks (gegeben)
    91
    Thanks (bekommen)
    420
    Total Downloaded
    323,0 KB
    Total Downloaded
    323,0 KB
    ReceiverDanke
    Box 1:
    Vu+ Zero 4K
     
     
    Box 2:
    Vu+ Solo SE V2
     
     
    Box 3:
    Formuer F4-TURBO
     
     
    Ofgwrite is used to back up the contents of the flash memory in the set top box, but I don't know how to work with it ... I would have to study a lot about it again. Or is it just for writing an image to flash? I don't know, sorry.

    GitHub - oe-alliance/ofgwrite: ofgwrite from Betacentauri: Based upon: mtd-utils-native-1.5.1

  6. #5
    Avatar von Papi2000
    Registriert seit
    20.04.2013
    Beiträge
    24.926
    Thanks (gegeben)
    4698
    Thanks (bekommen)
    9126
    Total Downloaded
    596,61 MB
    Total Downloaded
    596,61 MB
    ReceiverDanke
    Box 1:
    GB Q4K-SC / UE4K-SC / UE4K-C
     
     
    Box 2:
    GigaBlue Q-SSC / Q+-SSC
     
     
    Box 3:
    DM900uhd-SS / Vu+Duo
     
     
    Box 4:
    ZGemma H7/H9 SF8008
     
     
    Box 5:
    diverse andere . . .
     
     
    ofgwrite is used to flash. For backup the integrated image backup function (more different parts and even steps) is used. Therefore someone must jump through the whole process from remounting, stopping services, ignoring deeplinks, to making an archive of kernel- and root-partition, and clearing up after the process.
    Grüßle
    Ralf
    ---------------------------------------------
    Gigablue Quad4K-mixed, UE4K, Trio4K, Quad_Plus-SSC, UE_Plus-SC, X2/X3-SC, UltraUE-SC, ...
    Astra 19.2E UniCable & KabelBW, oATV/teamBlue
    (u.a.: DM900uhd,Vu+Duo,ZGemma H9Twin & H7S), PC-DVB-S/C/T, Xtreamer, BDP5200, Philips 24PFS4022/12, 65OLED855/12,UE32C5700, RPi3+
    ---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----




Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:40 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,00%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com