xfs
[Top] [All Lists]

Re: XFSdump / shell scripting

To: Steve Wolfe <nw@xxxxxxxxx>
Subject: Re: XFSdump / shell scripting
From: Nathan Scott <nathans@xxxxxxx>
Date: Fri, 18 Jan 2002 09:15:50 +1100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <004c01c19fa2$af0f0500$d281f6cc@iboats.com>; from nw@codon.com on Thu, Jan 17, 2002 at 03:02:36PM -0700
References: <004c01c19fa2$af0f0500$d281f6cc@iboats.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
hi,

On Thu, Jan 17, 2002 at 03:02:36PM -0700, Steve Wolfe wrote:
> 
>   OK, I'm lost, and obviously clueless. As part of a backup script that
> I'm writing to replace our current backup solution, I'm doing this:
> 
> DEVICE=/dev/st0
> NR_DEVICE=/dev/nst0
> DUMP=/sbin/dump
> XFSDUMP=/usr/sbin/xfsdump
> 
> (snip)
> 
>     then
>         CMD="$XFSDUMP -m -o -l 0 -F -f $NR_DEVICE $FS"
>         [ $DEBUG !=0 ] && echo "$$:  Executing \"$CMD\"..."
>         `$CMD`
          ^^^^^^

Try it without the quotes (``) around $CMD, or use:
        eval "$CMD"
instead.

/usr/sbin/xfsdump should always exist (it is a symlink to the
/sbin/xfsdump binary in recent xfsdump packages).

cheers.

>     fi
> 
>  Alrighty, then.  Whenever it runs from a cron job, I get:
> ------
> 10488:  Executing "/usr/sbin/xfsdump -m -o -l 0 -F -f /dev/nst0 /home"...
> /root/sys_backup.sh: /usr/sbin/xfsdump:: No such file or directory
> ------
> 
>   What?  Yes, /usr/sbin/xfsdump exists:
> ----
> # ls -al /usr/sbin/xfsdump
> -rwxr-xr-x   1 root     root       939348 Oct 18 15:29 /usr/sbin/xfsdump
> ----
> 
>   But... if I simply cut and past the line into a
> shell,"/usr/sbin/xfsdump -m -o -l 0 -F -f /dev/nst0 /home", it works just
> fine and dandy.  What, exactly, could I be doing wrong?
> 
> steve
> 
> 
> 

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>