Hi have a little code file to run a backup:
if [ -d $file ]; then
echo "folder OK"
echo "foer lage folder"
echo "laget folder"
echo "over mysql dump"
mysqldump -u root -p5******** database > /mnt/backupdir/backupdir/$month/$today.database-backup.sql
tar czf /mnt/backupdir/backupdir/$month/$today.attachments-backup.tar.gz attachments
This have worked on the old server but now I get:
: command not foundscript2: line 5:
: command not foundscript2: line 6:
/home/scrips/backupscript2: line 21: syntax error: unexpected end of file
Have tried to search for a solution, but found no match that helped me.
regards and thanks for help!!!