Gemini_backup.sh stark überarbeitet

  • Hallo,


    ich habe mal die Gemini_backup.sh überarbeitet.
    Hoffentlich hat das noch kein anderer gemacht :winking_face:


    1. Im Bluepanelmenü kann man auswählen was gesichert werden soll, das funktioniert aber nicht oder? => Daher unterstützt das Skript jetzt Parameter => Jemand müste das Blue Panel Plugin anpassen.


    2. Es werden viele Dateien nicht gesichert, z. B. keine Dateien von Samba-v.3.0.23c-r4-11.08.2007, damit das jetzt möglich ist, kann man in die Datei /var/etc/backup_custom.cfg untereinander alle zu sichernden Dateien eintragen, dazu das Skript zusätzlich mit "-c" starten.


    3. Die Datei /etc/resolv.conf wurde nicht gesichert. => Korrigiert (auch einige andere wichtige Dateien scheinen zu fehlen, noch nicht korrigiert)


    4. Das Skript war extram langsam und hat recht viel Platz benötigt, ich habe es ein wenig optimiert (sollte soweit alles stimmen, ich habe aber gerade noch ein paar Änderungen gemacht, also ruhig mal testen).
    Das alte Skript hat 41 Sekunden in den Standardeinstellungen benötigt, das neue Skript braucht nur noch 22 Sekunden.




    Sollte es für gut befunden werden, wie kommt es ins Image rein?

  • Ich finde die Idee super! Es wäre nur schön wenn das script auch in anderen images funktionieren würde... Wenn ich z.b. in einem anderen image das script über telnet starte läuft es ohne probleme durch. Nur kann ich da die gesicherte datei nicht wieder zurückspielen. Könntest ja einbauen, dass das script mit startvariablen arbeitet, die dann übergeben werden (backup, rückbackup :winking_face: :D). Schön wäre es auch wenn der bin ordner mit den emus gesichert würde. Auch die emu configs wären schön :winking_face: (wird ja nicht gegen die boardregeln verstoßen). Das wars erstmal :winking_face: Ist aber ein schritt in die richtige Richtung! Weiter so!

  • with mistakes from original:

    Code
    echo "  sed 's/\/etc\/enigma/\/var\/tuxbox\/config\/enigma/' /var/tuxbox/config/enigma/userbouquets.tv.epl > /var/tuxbox/config/enigma/userbouquets.tv.epl.c" >> /var/bin/n_addoninstall.sh
    		echo "  sed 's/\/etc\/enigma/\/var\/tuxbox\/config\/enigma/' /var/tuxbox/config/enigma/userbouquets.tv.epl > /var/tuxbox/config/enigma/userbouquets.radio.epl.c" >> /var/bin/n_addoninstall.sh
    		echo "  sed 's/\/etc\/enigma/\/var\/tuxbox\/config\/enigma/' /var/tuxbox/config/enigma/userbouquets.tv.epl > /var/tuxbox/config/enigma/userbouquets.file.epl.c" >> /var/bin/n_addoninstall.sh


    and looks like my version is invisible :)
    Gemini backup script

    dm8Ksstt+NN2 dm7020+GP
    1.8m+36E;28E;23E;19E;16E;13E;7E
    1.6m+42E;40/39E;36E
    1.0m+10/9E;5E;1W;8W
    0.8m+4/5W
    1.1m+12W;18W;24W
    1.0m+15W;22W;30W
    1.0m+75E;80E
    1.1m+53E;60E

  • @ MartiniB:
    Sorry, haven' t found your skript. Do you have any idea how to get it in the GP.


    Whats wrong with "sed" from the original script?


    antonbier
    I can add the emu backup, MartinitB done it already. I probably will just add one command switch to save all emu files, not just a particular emu.
    Or you just use the mentioned custom file to backup your needed files, just add the files or directorys into that file.


    Restore should be quite easy, just use a tar -xzf gemini_backup_DD.MM.YYYY.tar.gz -C /
    Haven' t checked the syntax, but this should work with alle images.


    @all:
    But who will put it to the GP and modify the Backup-Plugin in the Blue Panel?

  • Zitat

    Originally posted by hans753
    ...
    Whats wrong with "sed" from the original script?


    tree files:
    userbouquets.tv.epl
    userbouquets.radio.epl
    userbouquets.file.epl
    finaly are made from one source:
    userbouquets.tv.epl

    dm8Ksstt+NN2 dm7020+GP
    1.8m+36E;28E;23E;19E;16E;13E;7E
    1.6m+42E;40/39E;36E
    1.0m+10/9E;5E;1W;8W
    0.8m+4/5W
    1.1m+12W;18W;24W
    1.0m+15W;22W;30W
    1.0m+75E;80E
    1.1m+53E;60E

  • The script should now find more addons to backup and will just save some emu files.


    You probably will use the parameter "-A" to save the most important things.
    Changed the userbouquets.tv.epl file for radio and file.


    Known Bugs: Files with special characters and spaces will probably not be saved. I' ve tried some escape tricks, but they didn' t solve the problem.


    Try the script and report the missing things, I think there will be some. But it should be much better than the original one.


    gemini People: What do you think about the script or MartiniB script, will you add id?