Ant backup and restoration script is not working

Hi team,

We have created the backup script based on the Appian documentation. Below is the script

Also installed ant package .

ant -version

Apache Ant(TM) version 1.10.9 compiled on September  

we are getting above output on below path by executing ant -version command

cd /opt/middleware/appian/thirdpartyappas/apache-ant/bin

As per instruction(Configuration and backup) we are save below file as Linux.sh ( bash scrpt)

We save below file in <appian_HOME>/_admin/_script/tools/datamaintenance

But after executing ./Linux.sh I am getting Below  error 

./Linux.sh: line 4: ant: command not found 

we also set environment variable in /etc/profile file 

export ANT_HOME=/opt/middleware/appian/thirdpartyapps/apache-ant

export PATH=$JAVA_HOME/bin:$PATH:$ANT_HOME/bin:

#!/bin/bash
     source ../../../../server/_scripts/exports.sh
     INSTALLDIR=$AE_HOME/_admin/_scripts/tools/datamaintenance/antScripts
     ant -f $INSTALLDIR/aecopyfiles.xml -Dae.source.location=$AE_HOME -Dae.dest.location="/data/aebackups" -

We are gettting error are after manually excuting the script .
Please help to resolve this Issue

  Discussion posts and replies are publicly visible