-
Website
http://adityakothadiya.com/ -
Original page
http://adityakothadiya.com/2009/05/automating-your-mysql-database-backup-on-media-temple%e2%80%99s-grid-server/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
samuelstanislas
1 comment · 1 points
-
jaampool
2 comments · 1 points
-
Derek
1 comment · 1 points
-
Viral Marketing
2 comments · 2 points
-
Jay Goldman
2 comments · 2 points
-
-
Popular Threads
for DATABASE in `mysqlshow -udbXXXXX -pPASSWORD -h internal-db.sXXXXX.gridserver.com | grep '^|'|grep -v Databases | cut -f 2 -d ' '`
No guarantees but that might work.
Mike Marley
Technical Communications
(mt) Media Temple
Many thanks.
./db_backup.sh
: bad interpreter: No such file or directory
If I try "bash db_backup.sh" I get this error:
: command not found6:
'b_backup.sh: line 8: syntax error near unexpected token `do
'b_backup.sh: line 8: `do
Any suggestions? I can't wait to get this working. Thanks again.
Not sure if you figured it out, but basically what you want to do is make sure that the line-endings are in the Unix-friendly 'LF' format.
That's what fixed it for me.
Also, another issue I found with the script that I fixed was the path. It kept giving me a 'file or folder cannot be found' error. All I did was change the XXXXX from my gridserver/account number to my primary domain name. It seems that MediaTemple has both stored - I guess the gridserver number works for some clients, but for me only the primary domain worked.
Hope that works for you.
That's what I keep getting.