xfs
[Top] [All Lists]

Re: XFSdump / shell scripting

To: linux-xfs@xxxxxxxxxxx
Subject: Re: XFSdump / shell scripting
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Thu, 17 Jan 2002 14:49:24 -0900
In-reply-to: <004c01c19fa2$af0f0500$d281f6cc@xxxxxxxxxx>; from nw@xxxxxxxxx on Thu, Jan 17, 2002 at 03:02:36PM -0700
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <004c01c19fa2$af0f0500$d281f6cc@xxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
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`
>     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

you need to start your script with #!/bin/sh as the very first line.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpbJJYtqjGwO.pgp
Description: PGP signature

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