how to sync ftp folder with local folder?
6,391
Solution 1
You could mount it with curlftpfs
and then sync it with unison
.
Solution 2
The script you are searching for might be FTPSync.
Related videos on Youtube
Author by
GSto
Updated on September 18, 2022Comments
-
GSto almost 2 years
I have a local folder, and I would like to sync it a folder on a web server via FTP . what is the best way to accomplish this? I would prefer to be able to do this via terminal, so that I can just have an 'update' command that would update the files on the sever.
-
mweber about 13 years... or
rsync
(which is used byunison
) -
somasekhar about 13 years
rsync
does not sync in two ways I think. -
mweber about 13 yearsNo, it doesn't. But for this case it is not necessarily needed. I just wanted to add it ;)
-
somasekhar about 13 yearsRight, in this case a
rsync --delete
would do the trick. -
Peachy almost 12 yearsWhile this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.
-
Matthias Weiler almost 12 yearsI see that it would make sense in general, but in this case I recommend a program. What else should I write? Type "ftpsync.pl -h" to learn how to use it.
-
Clément about 7 yearsA good tutorial on how to do that (it's not that complex, but it helps to have a guideline): raphael.li/tips/synchronize-ftp
-
Clément about 7 yearsThe page moved to savannah.gnu.org/projects/ftpsync and there's a git repository : git.savannah.gnu.org/cgit/ftpsync.git