Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: nomer on December 22, 2011, 12:03:38 PM
-
Hi all,
I just have a quick question. But first the setup:
TinyCore 4.1
installed to usb flash stick with tc-install extention and booting from it (ext2)
apps stored at /mnt/sdb1/tce
At shutdown I usually choose the Backup option so that my stuff stays around.
I was looking in /opt/xfiletool.lst and was surprised. It looks like this:
Cache
cache
.cache
XUL.mfasl
XPC.mfasl
opt/.tce_dir
mnt
.adobe/Flash_Player/AssetCache
.macromedia/Flash_Player
.opera/opcache
.opera/cache4
.Xauthority
.wmx
I was expecting these to be relative to /
Except for these two:
mnt
opt/.tce_dir
None of them exist relative to /
Also mnt isn't even in /opt/.filetool.lst (this seems pretty obvious to me)
Is there any reason that these entries are here?
Or are the file names relative to something other than / ?
Thanks and Merry Christmas,
Nomer
-
Hi nomer
The backup script performs this function using the tar utility. For details on tar, google it.
The .xfiletool.lst file overrides anything that also shows up in the .filetool.lst file. So if you
include mnt in .filetool.lst, it will not be backed up.
Cache
cache
.cache
These types of entries will keep stuff like /home/tc/.opera/cache from bloating your backup.
As to why paths are not specified with a leading slash, I think it has something to do with how
the script calls tar and how tar deals with paths. As i said, for more details, Google tar.
-
I've done some looking into into it and I think that I understand it enough to be able to edit it to my needs.
I think that filetool.sh is the script that performs the backup and this line:
sudo tar -C / -T /opt/.filetool.lst -X /opt/.xfiletool.lst -czf "$MOUNTPOINT/"$FULLPATH"/${MYDATA}.tgz"
is the one that does it (in my case).
So after my research I've come to the conclusion that /opt/.filetool.lst contains a list ov files and directories relative to / (thus no / is needed at the beginning ov each line)
/opt/.xfiletool.lst contains a list ov patterns separated by newlines. These patterns are used to determine what files are excluded. (If you know about globbing, which I don't, you can use it in this pattern.)
Anyway, there is a wiki article/page/whatever you call them, that talks about this it is here:
http://wiki.tinycorelinux.net/wiki:backup (http://wiki.tinycorelinux.net/wiki:backup)
In the second section it says
To edit /opt/.filetool.lst or /opt/.xfiletool.lst use a Root Text Editor. Open the terminal and type
sudo editor
Include the directories relative to the root directory, and leave out the leading /.
It seems to say that both files list files in the same way, which isn't true.
If I'm correct in the conclusion that I've come to then I think that someone (me?) should update the wiki.
-
Please update, correct, or make improvements to this page, and other wiki pages, where you can.
If you are not sure about something, experiment to check what you are thinking, or have further discussion in this forum.
Many wiki pages are not up to date.
-
Many wiki pages are not up to date.
I'm sorry to hear that.
I might be able to edit some page(s) if I can get an account.
I'm not sure how to do that. Should I contact someone on this forum or did I miss the form/page on the wiki that would help me with that?
-
Hi nomer
The same username/password you use to login to the forum can be used to login to the wiki.
-
nomer
While all contributions are appreciated.
I noticed you are a new user.
Ensure you understand what you write in the wiki.
There was one user, quite some time ago, who wrote things in the wiki which were not true. He was trying to contribute, but did not understand. Anyone reading what he wrote would have been confused.
Use Tinycore, get to understand it well, and contribute.
-
Yes, I can see
Ensure you understand what you write in the wiki.
I'll be sure to do that.
I'm always open to correction. (At least, I try.)
-
O.T. but if I have a directory and a file of the same name how do I to distinguish?
Examples
/path/name/ <--directory
/path/name <--file
in filetool both should be written as "path/name"
-
You cannot have a file and directory with the same name.
-
:o oh my god, is true! :o