mbeltoft
June 24th, 2011, 10:50 PM
I'm looking for a script that will upload a folder and all subfolders to a ftp via cron
uploading a single file is easy but i can't figure out how to upload a whole folder structure.
also i don't want it just to upload everything, if the same file already exist on the ftp (name and size check) then it should be skipped but if something is deleted in the local folders it should be deleted on the server too. Also it should skip files that are larger than 15MB
I want this because a have a bunch of photos I want to backup to a external FTP. I already have local backup so to save space and transfer time my idea is just to have a mirror of my current photo folder.
I've tried with rsync but my host only provides ftp access so I'm a bit lost here.
Hope someone can help me.
uploading a single file is easy but i can't figure out how to upload a whole folder structure.
also i don't want it just to upload everything, if the same file already exist on the ftp (name and size check) then it should be skipped but if something is deleted in the local folders it should be deleted on the server too. Also it should skip files that are larger than 15MB
I want this because a have a bunch of photos I want to backup to a external FTP. I already have local backup so to save space and transfer time my idea is just to have a mirror of my current photo folder.
I've tried with rsync but my host only provides ftp access so I'm a bit lost here.
Hope someone can help me.