8 Replies Latest reply: Jan 2, 2014 5:10 PM by mibanez RSS

    Script for cold backup

    qazianeel

      Hello friends;

       

      I'm trying to run following script which I copied from somewhere using .sh file but the same is not running and showing errors:

       

      Script:

      #!/bin/sh

      dy=`date +%D`

      bk='/backup/test'

      cm_oracle='tar -czhf '$bk'/'$dy'_db_bkp.tar.gz /TEST/oracle'

       

      [oracle@visionerp ]$ sh cold_bkp.sh

      : command not found:

      : command not found:

      : command not found:

       

      OS Linux 5.8.

       

      Regards

       

      Aneel Ahmed