Hi Matthew, hi Paul, hi all,

> -----Ursprüngliche Nachricht-----
> Von: "Matthew Macdonald-Wallace" <[EMAIL PROTECTED]>
> Gesendet: 02.09.08 12:10:12
> An: [email protected]
> Betreff: Re: [Linux-HA] File System preferences


> On Tue, 02 Sep 2008 11:01:54 +0100
> Paul Walsh <[EMAIL PROTECTED]> wrote:
> 
> > Yes, it's rsync :)
> 
> LOL.

You don't have to lough here.  ;-)
There is a subtle difference between scp and rsync which many admins don't know 
well:

As soon as you start to copy a file to a remote destination via scp where the 
target file name
exists the following happens:
a) Target file is removed.
b) Copy is started with the sink being the destination file name GROWING while 
copying.

The same in rsync:
a) Temporary file on target is created in the target directory.
b) Copy is done to that temporary file. File grows while copying. 
c) IMPORTANT: Until now preexisting target file is untouched!
d) When copy is ready, temporary file is renamed to target file.

Conclusion: The time frame where you have a inconsistent
file is much lesser with rsync.
And while rsyncing one web server to the other you will have
a time frame with inconstitencies which you want to be as
small as possible.

Best regards
Andreas Mock



_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to