I am using this script at https://extremeshok.com/5368/mysql-mariadb-dumpbackup-databases-single-separate-files/, test others but they are the same so… it should work but I get:
[root@s1 /]# sh mysqldumpall.sh
mysqldumpall.sh: line 2: $‘\r’: command not found
mysqldumpall.sh: line 9: $‘\r’: command not found
mysqldumpall.sh: line 11: $‘\r’: command not found
: No such file or directoryusr/bin/mysql
mysqldumpall.sh: line 13: $‘\r’: command not found
mysqldumpall.sh: line 14: syntax error near unexpected token $'do\\r'' 'ysqldumpall.sh: line 14: for db in $databases; do