I need two SOLID shell scripts that can sync:
-local folder -- ftp folder (rsync)
-local folder -- s3-bucket folder (currently using s3cmd)
*I will be using these script on Mac OSx.
Here are the problems that I have with the current script:
-Ftp unmount fails.
-After a FTP sync is interrupted, the script fails to start the sync again (mounting/unmount problems)
-Files which contain special characters get re-downloaded at every sync .
-Interrupted download files are not re-downloaded on the next sync causing the files to be corrupt.
Please note that I want these scripts built from ground up, I do no want to patch up or fix the existing script.