jrblevin
12th May 2004, 05:45 PM
I am trying to write a script that will synchronize a remote FTP directory with a local directory (uploading from my box to the ftp site). What I really want to do is "rsync -avz --delete ..." but the remote host doesn't support rsync so I have to use FTP.
I have looked over the ncftp and ncftpput manpages with no luck. I could have it upload _everything_ but that would be overkill since I only want to freshen the files that have changed since the last update. Automatically removing remote files that are no longer used would be a big plus too (like the rsync --delete option). Any ideas?
I have looked over the ncftp and ncftpput manpages with no luck. I could have it upload _everything_ but that would be overkill since I only want to freshen the files that have changed since the last update. Automatically removing remote files that are no longer used would be a big plus too (like the rsync --delete option). Any ideas?