Operating System - HP-UX
1830910 Members
1751 Online
110017 Solutions
New Discussion

lofs filesystems and the find command

 
SOLVED
Go to solution
Tim Nelson
Honored Contributor

lofs filesystems and the find command

This description is really long and hopefully this abreviated part make sense.
The backup scripts that I have created use the find command which then pipes to cpio. Recently I have been working on some mirror split backups which have a fail over that if there is no mirror or a failure the script will mount the filesystem as lofs and continue. The find command I use is " find ./DIR_NAME -xdev |cpio -omvB >> /dev/Tapedrive ". The -xdev makes sure I do not cross mount points as I have the filesystems each being backed up with separate commands in parallel. This works great on regular filesytems but when I run the find command in an lofs it will not cross any "directory" in the filesystem. It is qualifying each directory in an lofs filesystem as a mount point and the -xdev will not let the find cross it. If I use find ./DIR_NAME/* then the directories are expanded but then I loose the -xdev on my other normal filesystems. ( this is long ) Ultimately I need to use the same command no matter what kind of filesystem it is so I can stay dynamic.
Any ideas ??? Thanks !
3 REPLIES 3
Antoanetta Naghiu
Esteemed Contributor
Solution

Re: lofs filesystems and the find command

Did you try -local or -fsonly or -prune your nfs mount points (in combination)?.
e.g. find / ! -local -prune -print
Antoanetta Naghiu
Esteemed Contributor

Re: lofs filesystems and the find command

Did you try -local or -fsonly or -prune your nfs mount points (in combination).
e.g. find / ! -local -prune -print
rajsri
Frequent Advisor

Re: lofs filesystems and the find command

Hi
I dont know whether its possible or not ,
but why dont you try fbackup with -l option which backus up lofs filesystems as well.