Le 20/08/2020 à 23:48, David C. Rankin a écrit :
On 8/20/20 10:22 AM, jdd@dodin.org wrote:
I did them with Dolphin. Given my data structure it's pretty hard to make them in cli :-(
That is like "Tap Dancing On Landmines", or "Playing Russian Roulette".
no. It's not on essential data. In fact, I have my multimedia data sorted by years and grouped by decades (10 years), because it covers 1860->today, it's hard to follow in digikam, but one can have a centralized digikam folder with symlink. if ever I lose links, I still can rebuild the database -all is also stored in images- but it's a one day long work for the computer :-)
There is never any ambiguity whether absolute or relative links are used, etc...
but there are many other ways to lose data :-()
What you need to do on the new disk is figure out where all the file live relative to your "links directory" and then simply replace all absolute links with relative ones. Use the -f option to overwrite the absolute link with relative ones. E.g.
yes. I have to replace /run/media/jdd/intenso5to2 with ../../ (my digikam folder is always at the same place, relative to the data. but I have to figure the link target I know the link location I need some sort of, but this code is not working ($j and $i are identical - my bash knowledge is bad :-( #!/bin/sh for i ; do j=$(readlink $i) ; k=sed -i 's///run/media/jdd/intenso5to2/../..//g' $j ; ln -sf $k $i ; done thanks helping jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org