Page 1 of 2 12 LastLast
Results 1 to 15 of 28

Thread: Symlink on DCC

  1. #1
    Senior Member sataday's Avatar

    Join Date
    Aug 2014
    Location
    Pandora, Alpha Centauri.
    Posts
    224
    Thanks
    96
    Thanked 26 Times in 21 Posts

    Symlink on DCC

    I have setup 2 different symlinks up on DCC. One to take me directly to plugins, and the other to take me directly to my oscam files (etc/tuxbox/config).
    Although I have them both ticked in backup manager, after updating image, only the plugin one is there. It doesn't save the oscam files one.
    This is not a recent problem. I have had it on every update for a while now
    Any ideas why?
    Thanks.
    VU+Solo2 (45E - 34.5W))

  2. #2
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    19,532
    Thanks
    5,055
    Thanked 7,706 Times in 5,173 Posts
    Symlinks are not saved in a settings backup. They never have been. I suppose you can create a script to create them which would be saved.

    Having said that, an update does not remove links. A flash does.

  3. #3
    Senior Member sataday's Avatar

    Join Date
    Aug 2014
    Location
    Pandora, Alpha Centauri.
    Posts
    224
    Thanks
    96
    Thanked 26 Times in 21 Posts
    Sorry, when I said update I meant Flashing a new image. You say that symlinks are not saved yet the one I created for plugins does save.
    VU+Solo2 (45E - 34.5W))

  4. #4
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    19,532
    Thanks
    5,055
    Thanked 7,706 Times in 5,173 Posts
    You'll have to show me how you are doing so

    I have these symlinks.

    ln -s /usr/lib/enigma2/python/Plugins /_Plugins
    ln -s /usr/lib/enigma2/python/Plugins/Extensions /_Extensions
    ln -s /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker /_ABM
    ln -s /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/providers /_ABM_providers
    ln -s /usr/lib/enigma2/python /_Python
    ln -s /usr/share/enigma2/Simple_Ten_Eighty /_Simple1080
    ln -s /usr/share/enigma2 /_Skins

  5. #5
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    5,376
    Thanks
    130
    Thanked 1,149 Times in 916 Posts
    Quote Originally Posted by abu baniaz View Post
    Symlinks are not saved in a settings backup. They never have been.
    Yes they are.

    Code:
    root@et8000:/media/usb/backup# tar tvf openvix-dev-5.3.008.007-20191102-2200.tar.gz | grep local
    lrwxrwxrwx 0/0         0 2019-08-11 21:56:33 usr/local -> /media/hdd/GMLbits/local
    lrwxrwxrwx 0/0         0 2019-08-11 21:56:33 opt/local -> /usr/local
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. #6
    Forum Supporter
    Donated Member


    Join Date
    Sep 2014
    Posts
    2,636
    Thanks
    228
    Thanked 597 Times in 518 Posts
    .does this mean that a settings restore will bring them back as symlinks?

    I guess it should.

  7. #7
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    5,376
    Thanks
    130
    Thanked 1,149 Times in 916 Posts
    Quote Originally Posted by ccs View Post
    ….does this mean that a settings restore will bring them back as symlinks?

    I guess it should.
    Hmmm....should be...

    The restore command (as in "initiate a restore of a backup" - enigma2/lib/python/Plugins/SystemPlugins/SoftwareManager/BackupRestore.py) appears to be made by:

    Code:
    ["tar -xzvf " + self.path + "/" + self.sel + " -C /", "killall -9 enigma2"]
    so it restores everything (self.path + "/" + self.sel is the full-path to a backup file).

    A restore at Flash time is run by the the Restore Wizard (vix-core/src/RestoreWizard.py) and it runs:

    Code:
    "tar -xzvf " + self.fullbackupfilename + " -C /"
    so should be the same...
    Last edited by birdman; 03-11-19 at 19:38.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  8. The Following User Says Thank You to birdman For This Useful Post:

    ccs (03-11-19)

  9. #8
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    19,532
    Thanks
    5,055
    Thanked 7,706 Times in 5,173 Posts
    Are you saying a symlink is tarballed?

  10. #9
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    5,376
    Thanks
    130
    Thanked 1,149 Times in 916 Posts
    Quote Originally Posted by abu baniaz View Post
    Are you saying a symlink is tarballed?
    Yes. No reason why it shouldn't be.
    It can handle hard-links too.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  11. #10
    Senior Member sataday's Avatar

    Join Date
    Aug 2014
    Location
    Pandora, Alpha Centauri.
    Posts
    224
    Thanks
    96
    Thanked 26 Times in 21 Posts
    Thanks for all replies, but I still don't understand why the "Plugins" symlink saves but the "oscam files" one doesn't.
    VU+Solo2 (45E - 34.5W))

  12. #11
    Forum Supporter
    Donated Member


    Join Date
    Sep 2014
    Posts
    2,636
    Thanks
    228
    Thanked 597 Times in 518 Posts
    Is the file/directory the symlink is pointing to also included in backupmanager?

  13. #12
    Moderator abu baniaz's Avatar

    Join Date
    Sep 2010
    Location
    East London
    Posts
    19,532
    Thanks
    5,055
    Thanked 7,706 Times in 5,173 Posts
    oscam config files are always saved. same for other cams

  14. #13
    Forum Supporter
    Donated Member


    Join Date
    Sep 2014
    Posts
    2,636
    Thanks
    228
    Thanked 597 Times in 518 Posts
    Quote Originally Posted by abu baniaz View Post
    oscam config files are always saved. same for other cams
    Although it's still possible to de-select them, whether by accident or design.

  15. #14
    ViX Beta Tester birdman's Avatar

    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    5,376
    Thanks
    130
    Thanked 1,149 Times in 916 Posts
    I've just done a flash+restore.
    Both of my added symlinks were restored.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  16. #15
    Senior Member sataday's Avatar

    Join Date
    Aug 2014
    Location
    Pandora, Alpha Centauri.
    Posts
    224
    Thanks
    96
    Thanked 26 Times in 21 Posts
    Quote Originally Posted by birdman View Post
    I've just done a flash+restore.
    Both of my added symlinks were restored.
    Was one of them "etc/tuxbox/config" ?
    VU+Solo2 (45E - 34.5W))

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.