Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Is .xfiletool.lst really work??, Backing up unwanted mounts...< Next Oldest | Next Newest >
Max Offline





Group: Members
Posts: 211
Joined: July 2004
Posted: Sep. 01 2005,11:39 QUOTE

I thought I had it licked by putting

home/dsl/mnt/

into my .xfiletool.lst file.  But yesterday I mounted a windows drive via Samba and forgot to unmount it.  When I went to shutdown DSL, it totally ignored the above line in the .xfiletool.lst file and started backing up the whole C: drive on the sharepoint.

Can someone else please check this on their system to see if they can reproduce the same unwanted results??


--------------
Using DSL on: IBM T42, IBM 560x, Dell Dimension CPx
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 01 2005,14:38 QUOTE

I don't think you can specify directories like that in .xfiletool.lst...just individual files.  It seems like tar is very particular about what files and directories take preference when using the --exclude and -T options together, but i've never quite figured out what the order is.

One thing I'm pretty sure of is that a path ending with a slash means the contents of the directory, and not the just directory itself.  Since there's no way to create a simple filetool without backing up directories recursively, Tar will most likely grab the /home/dsl/mnt directory along with its contents, since you did not specify the directory itself (without the ending slash) in the .xfiletool.lst list . This is just speculation, though.

A more direct route to success would be to mount volumes in the place recommended by the Filesystem Hierarchy Standard...in the "/mnt" directory.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
hawki Offline





Group: Members
Posts: 175
Joined: Jan. 2004
Posted: Sep. 01 2005,19:16 QUOTE

Hi
I don't use samba but I do use backup/restore.  That function uses the tar utility.  The file .xfiletool.lst is used in the --exclude-from=file option of the utility.  That file contains not a list of filenames but a list of patterns to match against filenames.  Those patterns are wildcard matched against the names of the files to be included in the tar file.  Thus if you want to exclude any file with mnt in the filename just add the following line

mnt

If you want to exclude any files on all your hard drives add the following line

mnt/hd

In your case you may want to try

dsl/mnt

good luck
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Sep. 01 2005,21:44 QUOTE

I just tested...

home/dsl/mnt

with a Samba mount that was generated via using LinNeighborhood in samba.dsl

Works fine here.

Notice no trailing /
If the trailing slash is there it does not work.

I have added the above line to the default .xfiletool.lst for v1.5
Back to top
Profile PM WEB 
3 replies since Sep. 01 2005,11:39 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Is .xfiletool.lst really work??

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code