xfs
[Top] [All Lists]

XFSdump / shell scripting

To: <linux-xfs@xxxxxxxxxxx>
Subject: XFSdump / shell scripting
From: "Steve Wolfe" <nw@xxxxxxxxx>
Date: Thu, 17 Jan 2002 15:02:36 -0700
Sender: owner-linux-xfs@xxxxxxxxxxx
  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




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