You are not logged in.

#1 2008-08-30 11:10:19

patogen
Member
Registered: 2008-05-11
Posts: 86

syncronize software

I'm trying to figure out how to syncronize two folders the best way, what I want is this:

1/ Host is a web server, with directory listing
2/ Client is my computer, running Arch
3/ I want to compare the web server's files with the ones on my computer. For instance say that:

A.jpg, B.jpg, C.jpg, D.jpg is on the server and that:

A.jpg, B.jpg, C.jpg, E.jpg is on the local host, what I want to do is to have some software that downloads the missing files from the webserver, in other words the file D.jpg in this example, but keeps E.jpg which isn't on the server. Basically: download the files from the server that isn't on the client. What is the easiest way to do this?


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#2 2008-08-30 16:49:50

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: syncronize software

rsync

Offline

#3 2008-08-30 22:55:20

patogen
Member
Registered: 2008-05-11
Posts: 86

Re: syncronize software

tam1138 wrote:

rsync

Tried man rsync, and checked out google, but I cannot figure out how to use rsync for this. Could you explain?


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#4 2008-09-01 02:55:47

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: syncronize software

rsync -vzra server:/path/to/root/ /path/to/local/

The trailing slashes are important.  Also, try reading the manpage again; it's a very useful tool and worth knowing well.

Offline

#5 2008-09-01 06:13:01

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: syncronize software

lftp (mirror), way easier.


1000

Offline

Board footer

Powered by FluxBB