Hi again, I was testing rsync stopping the transmission looking for possible errors.
As if the power had gone out or as if the system had stuck needing a force reboot.
I found that some files were not finished transferring.
Then when I run rsinc again, these files that are corrupt as they are new rsinc wants to delete the old ones that are fine and synchronize theese corrupted files.
One way that I thought to solve this problem is to have a record of the files that are being transfered and maybe use a flag to check if they were synchronized correctly.
And every time rsinc is run, check if there are files without that flag and ask if they want to be delete/clean
Hi again, I was testing rsync stopping the transmission looking for possible errors.
As if the power had gone out or as if the system had stuck needing a force reboot.
I found that some files were not finished transferring.
Then when I run rsinc again, these files that are corrupt as they are new rsinc wants to delete the old ones that are fine and synchronize theese corrupted files.
One way that I thought to solve this problem is to have a record of the files that are being transfered and maybe use a flag to check if they were synchronized correctly.
And every time rsinc is run, check if there are files without that flag and ask if they want to be delete/clean