--link-dest=server::location/folder

lewis butler lbutler+rsync at covisp.net
Wed Feb 11 21:59:35 GMT 2009


On 11-Feb-2009, at 14:44, Matt McCutchen wrote:
> On Wed, 2009-02-11 at 14:12 -0700, lewis butler wrote:
>> rsync -aCHh --stats  --link-dest=akane::backup/ranma.daily.1 /
>> myserver::akane/ranma.daily.0

> rsync -aCHh --stats  --link-dest=../ranma.daily.1 \
> 	/ myserver::akane/ranma.daily.0
>
> rsync -aCHh --stats  --link-dest=/ranma.daily.1 \
> 	/ myserver::akane/ranma.daily.0

Ah, that is cool.  I didn't know that link-dest referred to paths on  
the destination.

>> I have actually tried this command, but it's been building a file  
>> list
>> for a very long time now. The data is only (only!!) about 12GB.
>
> I suggest you upgrade both sides to rsync >= 3.0.0 to use the
> incremental recursion mode, which interleaves file-list building with
> destination updating for somewhat better performance.

I've though about upgrading to 3.x, but I have been putting it off.  
Nervousness, I guess.

>> (What I want is to have several 'versions' of the current machine
>> backed-up to a second machine)
>
> I'll mention that there are several tools that automate this process,
> such as rsnapshot and dirvish, but I don't know if any of them support
> writing to an rsync daemon.  If you would like to use one of those
> tools, you could run it on the destination machine to manage the
> versions (assuming you have shell access) but still use the rsync  
> daemon
> for the upload.

I wrote a shell script that rotates the backups and that works fine.

-- 
No matter how fast light travels it finds the darkness has always
	go there first, and is waiting for it.



More information about the rsync mailing list