[NTLUG:Discuss] Copying a file to TWO destinations as the same time..
Chris Cox
cjcox at acm.org
Sun Jan 29 13:09:14 CST 2006
Richard Geoffrion wrote:
> Fred James wrote:
>
>> Richard Geoffrion wrote:
>>
>>
>>
>>> Does anyone know of a way..or possible way to copy a file to multiple
>>> locations at the same time? I know that TEE can do something.... <snip>
>>>
>> Richard Geoffrion
>> Tee should do it - it takes from stdin and writes to stdout plus a
>> file (or files), and stdout can be redirected. Is that what you
>> wanted to do, or did I get that wrong?
>> <snip>
>>
>>
> Well, My intentions with this is to figure out someway to cut down on
> dirvish backup times. I run dirvish TWICE each night.. Once for the
> inhouse drive and once for the offsite drive. If I could 'tee' the
> files to two physical drives at once..I think it would GREATLY speed
> things up. The only catch that I JUST KNOW THOUGHT OF... If you are
> rsyncing...the information that would go between the two different drive
> sets most likely will be different.
>
> I need something like an 'rteenc' or 'teesync' !! :) I'll have to
> think on this some more..
Am I understanding that both drives are local and are direct
attached?
How much data are you backing up?
What is your sustained drive writing speed going from the
"inhouse drive" to the "offsite drive". Are you getting
75M/sec or higher?
There's always md (RAID1) or drdb (remote block device) to consider.
Might be quicker to just do a recursive copy to the offsite
drive... rsync might be ok... but I'm totally sure about
the content of the "offsite drive" at the time of
backup.
I don't know if it's worth considering the original question
without knowing more detail... just my opinion of course.
More information about the Discuss
mailing list