Originally Posted by nawuza
Ok..shutdown the mysql service before backup it.
can you give me a guide on how to check whether the file is download completely?!for example the during the transferring tar file somehow occur a problem. how do it face the problem?!
There's probably several ways to check. Like I said, you could either check for a process copying or moving the file or perhaps create a md5sum of the file first as a separate file, have the copied over first which is almost instant and have a script compare the md5sum from the file to the file being copied to it's final destination, if it matches, the copy is complete, if not, wait and check in a few minutes in a while loop or something.
Or you can maybe print the size of the file in bytes and compare to final destination, same type of scenario of the md5sum. I'd personally go the md5sum route, more reliable or go the route of checking for the PID of the file being copied, etc.