WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Questions to FAQ about TCL  (Read 1469 times)

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #60 on: August 01, 2020, 05:06:07 AM »
@Juanito
oh.I had previously persisted opt and home directories by booter code to avoid generating mydata.tgz files.
But now if you want to persist other directories or files you must select "Backup" option before you shutdown. Is there any way to implement the persistence like "opt" and "home" without generating the mydata.tgz file without affecting the startup and shutdown speed.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12236
Re: Questions to FAQ about TCL
« Reply #61 on: August 01, 2020, 05:12:58 AM »
If you have setup a persistant /home and /opt you need to remove home and opt from /opt/.filetool.lst

As long as you only backup relatively small files like /usr/local/etc/someapp/some.config, mydata.tgz will remain relatively small and there will be a minimal effect on shutdown and reboot speed.

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #62 on: August 01, 2020, 05:21:44 AM »
In other words, mydata.tgz files must be generated anyway to persist other files or directories, right?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 12236
Re: Questions to FAQ about TCL
« Reply #63 on: August 01, 2020, 05:23:40 AM »
Yes, but use it for small files or files that change - make a personal extension for large static files.

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #64 on: August 01, 2020, 05:32:01 AM »
Well,You say this is only suitable for small files. File links are the smallest relative to any other files. Is there any way to solve this problem through file links? Then my mydata.tgz file will be very small.

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #65 on: August 01, 2020, 05:57:30 AM »
@Juanito
Fortunately, I've just tried this and it works very well. 8)

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #66 on: August 01, 2020, 06:06:42 AM »
@Rich
Help me mark other posts as problem solved, except for this one.Thank you!
« Last Edit: August 01, 2020, 06:08:51 AM by NOOB »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7927
Re: Questions to FAQ about TCL
« Reply #67 on: August 01, 2020, 06:22:02 AM »
Hi NOOB
... Is there any way to persist the entire disk's data? Once and for all.
Yes, switch to a Linux distro that was designed to work that way.
Trying to force Tinycore to work that way will eventually cause problems.
Running Tinycore that way is not supported here.
If you try to run it that way, you would need to resolve any problems on your own.

...  But first I'd like to know what you mean by "you should make your own local extension"?Does fireflysung.tcz do it that way?How do you do that?
I feel I answered that in reply #11:
http://forum.tinycorelinux.net/index.php/topic,24132.msg152359.html#msg152359
It shows how to unpack and repack an extension using  geany.tcz  as an example. Take some time to read it and study what is going on.

To make a local extension, create a work directory containing the the directory structure you want:
Code: [Select]
mkdir -p package/usr/share/fontsCopy files:
Code: [Select]
cp *.ttf package/usr/share/fontsThen package it:
Code: [Select]
mksquashfs package/ My-Favorite-Fonts.tcz -noappend
« Last Edit: August 01, 2020, 06:25:12 AM by Rich »

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #68 on: August 01, 2020, 06:39:07 AM »
@Juanito
Yes, I wanted to tell you that you told me already, but Thank you very much for telling me again.

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #69 on: August 01, 2020, 06:48:17 AM »
@Juanito
No, It seems That I was too happy too early. I found that the file link could not be backed up at all.  :-[What should I do? How can I make file links back up as well?  :-\

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7927
Re: Questions to FAQ about TCL
« Reply #70 on: August 01, 2020, 06:53:38 AM »
Hi NOOB
... I found that the file link could not be backed up at all. ...
How did you create the link?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7927
Re: Questions to FAQ about TCL
« Reply #71 on: August 01, 2020, 07:12:42 AM »
Hi NOOB
@Rich
Help me mark other posts as problem solved, except for this one.Thank you!
I marked the first and last posts in 4 of the topics you started as  [Solved].
We do not mark every post in a thread.
I do not know if you started any other topics. By deleting your previous account, you deleted the list of topics you started.
You can see which of your topics I marked here:
http://forum.tinycorelinux.net/index.php/board,62.0.html

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #72 on: August 01, 2020, 07:18:40 AM »
@Juanito
Code: [Select]
ln -s ~/fonts /usr/share/fonts
ln -s ~/locale /usr/lib/locale
then, I added two of its file links to the ".filetool.lst" file using the Cpanle.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 7927
Re: Questions to FAQ about TCL
« Reply #73 on: August 01, 2020, 07:35:37 AM »
Hi NOOB
Instead of trying to backup those links, add those 2 commands to  /opt/bootlocal.sh.
That will recreate those links every time boot.

Offline Trump

  • Full Member
  • ***
  • Posts: 157
  • China,China and China, I love China.
Re: Questions to FAQ about TCL
« Reply #74 on: August 01, 2020, 07:47:10 AM »
Thanks.I did exactly as you said. :P
But here's the question, why is ~/xxx used in the *.sh file when it really means /root/xxx instead of /home/tc/xxx? :o