No, you don't close the file after dumping the sql to it.
Only thing I can think of is that the permissions are wrong, if you create the backup as one user then ftp in as another. Check the permissions and also check that the filesize of the sql files is greater than 0