tar command with compress option
We are in process of developing the shell script to take the oracle database backup and using the TAR commnad with compress option as like below. But this commnad is not working. Please hlep
cd /u01/oradev/datafiles
tar cvf - data | compress -c > /u02/oraprod/dbf/proddata_`date +%d%b%Y`.tar.Z
Appreciate your kind help.
OS : Linux v5.5