Can't backup databases

I am using this script at eXtremeSHOK, 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

Something wrong with the script.

Something wrong with the script.

Tried all of them in the net and none work :confused: and that is weird

You can ask in comments to the author of script or maybe run the script commands line by line to see where it fails.

The script works in my friend’s server tho

You can ask in comments to the author of script or maybe run the script commands line by line to see where it fails.

What can I do then to backup all databases to another server? I am using rysync now to backup sites as the default method takes all space and overload the server but need something to databases

In next upgrade, backups already sent to remote destinations will be deleted from the server.

This will solve your space issues.