You are not logged in.

#1 2009-01-31 03:52:28

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

rsync - download to directory other than the sync directory

I want to rsync from server/dir to local/dir. local/dir is an outdated sync of server/dir. I would like to perform a sync but actually download the necessary files for the sync to a different directory than local/dir.

Basically: compare server/dir and local/dir, download the necessary updates to local/some-other-dir.

It doesn't seem as if rsync has this functionality built in, but it's possible I'm missing something.

How could I do this?

Offline

#2 2009-01-31 13:15:50

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: rsync - download to directory other than the sync directory

Offline

#3 2009-02-01 07:02:12

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: rsync - download to directory other than the sync directory

My question is more complex than a standard backup procedure, I don't see anything about my question in the wiki.

Basically, I compare A to B but actually perform the backup to location C.

Offline

#4 2009-02-02 01:00:45

fumbles
Member
Registered: 2006-12-22
Posts: 246

Re: rsync - download to directory other than the sync directory

You could just write a small script that uses rsync to first find out what needs to be copied first  (--list-only) then use it to copy the files that were listed to a different directory.

Offline

#5 2009-02-02 07:22:48

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: rsync - download to directory other than the sync directory

Thanks, I'll look into that.

Offline

Board footer

Powered by FluxBB