On my system, xfsdump is in /sbin.
On Thu, 17 Jan 2002, 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`
> 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
>
>
>
>
|