WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: entries in /opt/.xfiletool.lst  (Read 3669 times)

nomer

  • Guest
entries in /opt/.xfiletool.lst
« 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:
Quote
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:
Quote
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11503
Re: entries in /opt/.xfiletool.lst
« Reply #1 on: December 22, 2011, 12:44:58 PM »
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.
Quote
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.

nomer

  • Guest
Re: entries in /opt/.xfiletool.lst
« Reply #2 on: December 24, 2011, 09:58:21 AM »
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
In the second section it says
Quote
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.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: entries in /opt/.xfiletool.lst
« Reply #3 on: December 24, 2011, 10:20:13 AM »
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 people see what is. Some people see what can be, and make a difference.

nomer

  • Guest
Re: entries in /opt/.xfiletool.lst
« Reply #4 on: December 25, 2011, 08:39:21 PM »
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?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11503
Re: entries in /opt/.xfiletool.lst
« Reply #5 on: December 25, 2011, 08:44:40 PM »
Hi nomer
The same username/password you use to login to the forum can be used to login to the wiki.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: entries in /opt/.xfiletool.lst
« Reply #6 on: December 26, 2011, 04:35:35 AM »
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.
Many people see what is. Some people see what can be, and make a difference.

nomer

  • Guest
Re: entries in /opt/.xfiletool.lst
« Reply #7 on: December 27, 2011, 06:00:22 PM »
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.)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: entries in /opt/.xfiletool.lst
« Reply #8 on: December 27, 2011, 09:08:19 PM »
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"

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: entries in /opt/.xfiletool.lst
« Reply #9 on: December 27, 2011, 09:31:34 PM »
You cannot have a file and directory with the same name.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: entries in /opt/.xfiletool.lst
« Reply #10 on: December 27, 2011, 11:02:34 PM »
 :o oh my god, is true!  :o