Linux – Can I rsync a tar file while it is still being created?

Can I rsync a tar file while it is still being created?… here is a solution to the problem.

Can I rsync a tar file while it is still being created?

I have a daily process to create snapshots of a very large mysql database (>500GB) into a backup.tar.gz file. I want to sync this file to another remote machine. Transferring data takes a lot longer than actually creating a backup, so I’m wondering….

Can I start the transfer using rsync before the backup.tar.gz file is fully complete so that most of the data has already been moved to another remote machine by the time it is done? Or will this corrupt the tar.gz file and not work?

Related Problems and Solutions