Use the sh like this
#!/bin/bash
TEMPDIR=/tmp/teamingbackup/
BACKUPDIR=/var/opt/novell/teaming
mkdir -p $TEMPDIR
#Stop Teaming according to Novell Docs (OPTIONAL)
#systemctl stop vibe
systemctl stop vibe
#Make a dump of the SQL Database and copy it to a directory created
#(Password filled with stars ;-)
mysqldump -u root -ppassword --all-databases > $TEMPDIR/all_databases.sql
# Copy the relevant Teaming and MySQL Service Files (Lucene is in theTeaming Directory)
cp -r /var/opt/novell/teaming $TEMPDIR
cp -r /var/lib/mysql $TEMPDIR
#Start Teaming (If stopped previously)
systemctl start vibe
#TAR