Duplicate threads merged jmc
Hi,
I have a script wherein I want to use gzip instead of compress.
# cat dly_appsfiles_bkp.ksh
#
# dly_appsfiles_bkp.ksh
#
date_stamp=`date +%m%d%y`
base_dir=/u05/gld1
sub_dir=apps
bkp_dir=/u00/backup/GLD1/APPS
bkp_file_name=${sub_dir}_${date_stamp}.tar.Z
echo ""
echo "Starting Compressed Apps Files backup ..."
echo "Compressed backup file name: ${bkp_dir}/${bkp_file_name}"
echo ""
cd ${base_dir}
tar cvf - ${sub_dir} | compress > ${bkp_dir}/${bkp_file_name}
echo ""
cd $bkp_dir
ls -ltr *.Z
mailx -s "Done"
abc@abc.com<<EOF
Backup done
EOF
echo ""
echo "Done."
echo ""
I'm new to shell scripting.Can someone please help me on how this can be modified?
Thanks,