nazwa zmiennej TAR
#check if tar file exists already
if [ -f "$file_name" ]
then
...
else
# create tar file
tar -cvf "$file_name" ...
...
fi
Concerned Chinchilla