Is .xfiletool.lst really work??Forum: User Feedback Topic: Is .xfiletool.lst really work?? started by: Max Posted by Max on Sep. 01 2005,11:39
I thought I had it licked by puttinghome/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?? Posted by mikshaw on Sep. 01 2005,14:38
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. Posted by hawki on Sep. 01 2005,19:16
HiI 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 Posted by roberts on Sep. 01 2005,21:44
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 |