scp and symlinks

Ken Moffat kmoffat
Sat Nov 20 11:10:24 PST 2004


Jorge Almeida wrote:

>>> files. What interests me about rsync is the "sync" part of the name. I
>>> would like to set up a better backup and/or transfer routine that will
>>> just grab all the files newly created or changed on my work machine. Is
>>> there a way to run either rsync or scp on a batch file, to have it just
>>> grab the files new or altered on a given day, or even better, just the
>>> changed portions instead of downloading the entire files?
>>>
>>> Scott
>>
>>
>> I run rsync on a nightly basis to backup /home/  and some other 
>> partitions.
>>
>> rsync -auvzr -e ssh --delete /home/   <othernamchine>:/home2/
>>
> Regarding the "sync" function, it is worth to take a look at unison
>     http://www.cis.upenn.edu/~bcpierce/unison/
> It uses ssh for the transport, too, and allows synchronization in both
> senses. Besides, it copies changed files (as opposed to copying all
> files or only new files).
>

I thought that was the primary advantage of rsync, that it ONLY copied 
files that differ from the destination. Once you have rsync'ed a 
directory, repeating the process is much shorter.

-- 
ken




More information about the Linux-users mailing list