View Full Version : [VU+ Solo2] 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.
abu baniaz
03-11-19, 16:00
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.
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.
abu baniaz
03-11-19, 17:26
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
Symlinks are not saved in a settings backup. They never have been.Yes they are.
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
….does this mean that a settings restore will bring them back as symlinks?
I guess it should.
….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:
["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:
"tar -xzvf " + self.fullbackupfilename + " -C /"so should be the same...
abu baniaz
03-11-19, 20:52
Are you saying a symlink is tarballed?
Are you saying a symlink is tarballed?Yes. No reason why it shouldn't be.
It can handle hard-links too.
Thanks for all replies, but I still don't understand why the "Plugins" symlink saves but the "oscam files" one doesn't.
Is the file/directory the symlink is pointing to also included in backupmanager?
abu baniaz
04-11-19, 18:02
oscam config files are always saved. same for other cams
oscam config files are always saved. same for other cams
Although it's still possible to de-select them, whether by accident or design.
I've just done a flash+restore.
Both of my added symlinks were restored.
I've just done a flash+restore.
Both of my added symlinks were restored.
Was one of them "etc/tuxbox/config" ?
abu baniaz
05-11-19, 12:31
What is symlink are you creating? Post the exact details including where you are creating it. Yes we know it points to /etc/tuxbox/config
abu baniaz
05-11-19, 12:42
Doh, I wasn't selecting the symlinks in the backups. Selecting the links I normally create restored them.
I then created this link and also added it to my backup files.
ln -s /etc/tuxbox/config /_Oscam_configs
It was also restored.
Was one of them "etc/tuxbox/config" ?No, as I don't use that.
What is the actual symlink you have pointing to it?
As mentioned in my 1st post I set the symlink with DCC called "oscam files" which takes me directly to config where all my oscam files are.
What do you mean by „oscam files“ in DCC because different images e.g. OpenATV store them in /usr/keys not as in OpenViX
As mentioned in my 1st post I set the symlink with DCC called "oscam files" which takes me directly to config where all my oscam files are.But I have no idea what you mean by "symlink with DCC".
But I have no idea what you mean by "symlink with DCC".
In Dreambox Control Center you have the option to create a new symlink. In FTP, rather that going to etc then to tuxbox and the to config (where my oscam files are) I just click on my newly made symlink which I have named "oscam files" and I go directly to "config"
abu baniaz
05-11-19, 20:02
You can't have spaces. Add an underscore.
Won't the order the files are restored be significant, files/directories first, then the symlink, otherwise it will fail.
You can't have spaces. Add an underscore.
I will try that. Thanks.
Won't the order the files are restored be significant, files/directories first, then the symlink, otherwise it will fail.No. The symlink is an entry in the file system. What it points to doesn't have to exist (which is a "dangling symlink").
You can't have spaces. Add an underscore.
I can confirm that is the answer. It now saves. Thanks again.
You can't have spaces. Add an underscore.Hmmm....that looks like a fixable bug.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.