[BUGS] rsync + smbfs

Jerahmy Pocott quakenet1 at optusnet.com.au
Wed Jan 2 09:52:37 EST 2008


On 02/01/2008, at 8:41 AM, Andy Farkas wrote:

> On 1/2/08, Jerahmy Pocott <quakenet1 at optusnet.com.au> wrote:
> ...
>> So I'm still at 1, I need a way to check from a script if the
>> filesystem is mounted,
>
> A google search for "testing if a file system is mounted" showed me  
> this:
>
> <http://www.unix.com/shell-programming-scripting/26007-testing-if-nfs-filesystem-mounted.html#post102095 
> >
>
> The answer was:
>
> "Thanks. I used the following command:
> /bin/df -t nfs | /bin/grep /backup"
>
> s/nfs/smbfs/

Oh yeah.. *hits head*

Actually probably better to just use 'mount | grep /backup', since df  
can take some time to complete on a network mount..


More information about the BUGS mailing list