Your best friend for file transfer.Fetch
Sync local & remote folders (2 posts)
- Started 7 years ago by tcdiver7
- Latest reply 7 years ago from Scott McGuire
Here's my situation... periodically throughout the week, I have to upload files to my FTP site from school. I work on those files at both school and home.
Basically, I want to put the newest files in both locations in one fell swoop. It's possible that I'll have local files that don't exist on the FTP server and files on the FTP server that don't exist locally.
From RTFM and searching the board, the mirror command seems to be the best way to do this... but I'm unsure how to mirror it both ways at the same time (partly because I've never used AppleScript).
So, should I just record a local -> remote mirror and remote -> local mirror in Script Editor and invoke that when I want to make everything match?
A related question: What does the mirror command do if a file in the destination folder is newer than the file in the source folder? Does it simply ignore that file?
Scott McGuire Administrator
The Mirror command should do what you want. However, currently it cannot mirror both ways at the same time - that's something we're considering for a future version of Fetch.
But yes, recording a local -> remote mirror followed by a remote -> local mirror should do the trick. However, you should back up your files on both ends before trying it the first time, just in case the result is not what you expect or wanted.
And yes, if a file in the destination folder is newer than the file in the source folder, the source file is not transferred, leaving the newer one untouched in the destination folder.
- Page 1