Dir management inside batch
I'm trying do task with directories and tar inside a batch but for some reason I still don't understand my batch doesn't accept my commands, example:
if [ $TIME = "2" ]
elif [ $TIME = "15" ]
/usr/bin/rm -rf ./*
/usr/bin/dd if=/dev/sda of=/opt/video18/$DAY/$DIR/disk.img count=1024 count=3 bs=1024
The ouput is:
But I doesn't have my dd output, my dir is empty.
Something I'm doing wrong :-?
Centos 7.x, thanks guys for your time.