LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sync web folders with local folder (https://www.linuxquestions.org/questions/linux-software-2/sync-web-folders-with-local-folder-807248/)

lpallard 05-11-2010 07:07 PM

Sync web folders with local folder
 
Hi,

I am trying to sync the content of several http folders (slackbuilds and sources) for my slackware computers.

THese sites are:
http://sfo.svn.sourceforge.net/viewv...ckbuilds-13.0/
http://repository.slacky.eu/slackware-13.0/
http://connie.slackware.com/~alien/slackbuilds/

I would like to sync the content of these sites to a local server on my network. If I need to install something I can just compile and install from my local server.

I was thinking to use rsync, but I tried with lftp and wget. What would be the best? Can you indicate the command you would use??

Thanks!!!!

lucmove 05-14-2010 12:48 AM

If you want to sync, then rsync definitely is your best choice. Both lftp and wget will download files, but they won't "sync". Although they can download new files, they can't tell that old files have been removed and remove them accordingly in your local folder.

lpallard 05-14-2010 08:17 AM

lucmove,

thanks for the reply! to use rsync to sync files over from a website, would I need a rsync compliant website such as the SlackBuilds.org repo (rsync://rsync.slackbuilds.org/slackbuilds) ??

Thats true I tried lftp and wget, they download only new stuff....

AlienBob's repository (great stuff BTW!) is mentioning lftp as the command to download its content but the command only works for one appz at the time....

lucmove 05-14-2010 03:24 PM

OK, I just found out it's possible to sync using lftp. Clues HERE and HERE.

About rsync, yes, you need an rsync compliant website.

Have fun.


All times are GMT -5. The time now is 11:29 AM.