Score:0

rsync --inplace does not update file

lk flag

I try to use rsync to backup a virtual box vm. This does not succeed: the disk image is not updated. I tried it on the vdi file alone as a test. The virtual machine was not running. The file is very large so I use the --inplace option to save diskspace and speed it up. I tested two ways to do this:

  1. Using a rsync daemon running on the destination.
  2. Using NFS to the same system.

The command for option 1 was:

rsync -av --delete --partial --inplace --append --progress  /src/integration/vdi rsync://rsyncuser@destserver/dest/integration.vdi

The command used for option 2 was:

rsync -av --delete --partial --inplace --append --progress  /src/integration.vdi /nfsserver/dest/integration.vdi

Integration.vdi was the same size on both systems, but the modification time on the destination was older.

In both scenarios rsync behaved as if the files were identical, but cmp on both files (after the rsync) showed they were different.

What is going on here? The documentation says that rsync uses file time and file size to determine if a file needs updating. The size is identical, but the destination is older, so I would think the file needs updating.

RebootDeluxe avatar
in flag
Did you try `--checksum`? If your files are very big then this is no option for you, but first try it. See: https://serverfault.com/a/211083/365170
user1777224 avatar
lk flag
@RebootDeluxe I tried that also. Had to kill it, it took far too long.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.