[SOLVED] Sync a local folder with one on a webserver?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A few possibilities. The best way in my opinion is to use something like curlftpfs to mount the FTP share to a local folder and then rsync to that folder. However, even with adequate timeout options, some FTP servers are not reliable enough for this approach and you end up having to run rsync multiple times and hope that it finishes eventually. Another option is to just use lftp (and use the `mirror -R` options to reverse mirror...and you may be able to mix that with the -n option to only copy newer files depending on how you store them locally). lftp establishes the connection for each file transferred so reliability is not much of a concern (unlike the first approach). I've also heard of sitecopy but I haven't tried it myself (I just use lftp).
I'm using lftp & it works great except I've issue with file ownership. It seems that lftp does not keep the original ownership. any option that I've missed?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.