[aklug] Re: Rsync file updating

From: Shane R. Spencer <shane@bogomip.com>
Date: Mon Dec 06 2010 - 08:42:56 AKST

On 12/05/2010 12:11 AM, Christopher Howard wrote:
> Question about rsync: say you are syncing local directory "localdir" to remotedir "remotedir". If a file in localdir is changed, but not deleted or moved, does rsync /delete/ the corresponding file in remotedir and /recreate/ it? (And, hence, create a new file with a new inode...) Or does it just /truncate/ the corresponding remote file and give it new data?
>

If the file changes locally the remote file is not deleted until it's replacement arrives.
  If you look for hidden files in a directory during a transfer (pause rsync w/ ctrl-s,
unpause w/ ctrl-q) you will see that it writes to a temporary file in the destination
directory.

- Shane
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Mon Dec 6 08:43:04 2010

This archive was generated by hypermail 2.1.8 : Mon Dec 06 2010 - 08:43:04 AKST