0

I have a machine, I have a hosting with FTP. On my venture I found out about lftp.
And the instructions are here: http://www.dangibbs.co.uk/journal/ftp-sync-usin-linux

Snippet is this:

open ftp://username:password@website.com
mirror -v --only-newer /home/local/path/ /website.com/public_html/

Do these things still work? Also, how do I loop it? I don't want to spam my computer with looping query, and execute 200000 mirrors in a second, when I'll update in 5 next seconds. Is there a way to make it automatic, so that I can leave it in background and let it go, I just want to update my files and have program update it on the FTP server.

Edited by Aeonix

5
Contributors
5
Replies
45
Views
7 Months
Discussion Span
Last Post by cereal
0

Heh.. you want to build a personal one drive? That's kinda neat.. I might try and figure that out, too...

0

I suggest a bash script

#!/bin/bash
while true; do 
    lftp -f /path/to/lftp-script
    sleep 300
done

lftp is a very good way to sync a local folder with an FTP folder.

0

No. I just want to upload project that I'm working on (HTML, CSS, JS etc.) to my FTP client. But I guess OneDrive would be nice application too.

0

To me this sounds like the old ftp and rsync discussion ( https://www.google.com/search?q=is+rsync+better+than+ftp+mirror&ie=utf-8&oe=utf-8 ) so I'd pick over that. You would have to benchmark the byte count of each system to see which has the lower overhead.

I like the banter at https://ask.slashdot.org/story/03/02/13/2132221/ftp-better-than-http-or-obsolete

At the end of the day your choice on how much overhead as you up your sync rate. At the office we settled for daily syncs. During the day we could always issue a command to "do it now."

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.