How to Download my MYSQL Backup?

Posted by NiCk Newman on Stack Overflow See other posts from Stack Overflow or by NiCk Newman
Published on 2012-10-15T00:46:47Z Indexed on 2012/10/15 3:38 UTC
Read the original article Hit count: 152

Filed under:
|
|
|
|

Okay I use this script here to make a backup of my database:

mysqldump -u root -h localhost -pPASSWORD forums | gzip -9 > backup-$(date +%Y-%m-%d).sql.gz

This is used in a cron daily.

But I need to download this remotely or through a ftp program every day as well so I have a physical copy of it on my home hard drive, is this possible? I know it is, can anyone tell me a quick way to do it?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about ftp