To everyone who still gets a 0 byte backup file – does your wordpress MySQL database have an empty password ? If it does, then the mysqldump command line contains a ‘-p’ instead of ‘-p <password>’ and hangs. I discovered this on my local dev server – I now have a proper username/password on my dev database and the dump works fine.
Great idea BTW!
Gus