Community

Can't backup databases

ri
ricardofh #1

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

us
usmannasir #2

Something wrong with the script.

ri
ricardofh #3
Something wrong with the script.

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

us
usmannasir #4

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

ri
ricardofh #5

The script works in my friend’s server tho

ri
ricardofh #6
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

us
usmannasir #7

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

This will solve your space issues.

Sign in to reply