Does rsync completely overwrite files with different timestamps?
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
I've used a command similar to this to rsync
files from macOS to Linux:
rsync -avz <ip-address>:/Backup/ Backup/
The folder Backup/
was previously copied from the same machine using scp
, with no files changed. I thought that rsync
would be a noop, but it started to overwrite all files (probably, because of different timestamps), causing a lot of disk writes. I've tried the same command with --size-only
and it finished almost instantly. Does rsync
completely overwrite the files that have different timestamps (i.e. not checking the difference)? Does it depend on the size of the files?
linux osx rsync
add a comment |Â
up vote
-1
down vote
favorite
I've used a command similar to this to rsync
files from macOS to Linux:
rsync -avz <ip-address>:/Backup/ Backup/
The folder Backup/
was previously copied from the same machine using scp
, with no files changed. I thought that rsync
would be a noop, but it started to overwrite all files (probably, because of different timestamps), causing a lot of disk writes. I've tried the same command with --size-only
and it finished almost instantly. Does rsync
completely overwrite the files that have different timestamps (i.e. not checking the difference)? Does it depend on the size of the files?
linux osx rsync
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I've used a command similar to this to rsync
files from macOS to Linux:
rsync -avz <ip-address>:/Backup/ Backup/
The folder Backup/
was previously copied from the same machine using scp
, with no files changed. I thought that rsync
would be a noop, but it started to overwrite all files (probably, because of different timestamps), causing a lot of disk writes. I've tried the same command with --size-only
and it finished almost instantly. Does rsync
completely overwrite the files that have different timestamps (i.e. not checking the difference)? Does it depend on the size of the files?
linux osx rsync
I've used a command similar to this to rsync
files from macOS to Linux:
rsync -avz <ip-address>:/Backup/ Backup/
The folder Backup/
was previously copied from the same machine using scp
, with no files changed. I thought that rsync
would be a noop, but it started to overwrite all files (probably, because of different timestamps), causing a lot of disk writes. I've tried the same command with --size-only
and it finished almost instantly. Does rsync
completely overwrite the files that have different timestamps (i.e. not checking the difference)? Does it depend on the size of the files?
linux osx rsync
linux osx rsync
edited 2 mins ago
asked 1 hour ago
Eugene Yarmash
4,53382845
4,53382845
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
read the fine manual of rsync:
It is famous for its
delta-transfer algorithm, which reduces the amount of data sent over
the network by sending only the differences between the source files
and the existing files in the destination.
I think you're getting read i/o, not write. Are you sure in rsync overwrite the files and not only scanning the content of them?
I don't think this quote illustrates what you want it to, since regardless of what goes over the network traffic it could still rewrite the files locally (which it has to do when there are changes).
â Michael Homer
27 mins ago
Yes, I'm sure (I checked withiotop
). I know about the delta-transfer algoritm, the question was why it didn't work.
â Eugene Yarmash
8 mins ago
Because the files are really different? Check them withmd5sum
.
â Ipor Sircer
6 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
read the fine manual of rsync:
It is famous for its
delta-transfer algorithm, which reduces the amount of data sent over
the network by sending only the differences between the source files
and the existing files in the destination.
I think you're getting read i/o, not write. Are you sure in rsync overwrite the files and not only scanning the content of them?
I don't think this quote illustrates what you want it to, since regardless of what goes over the network traffic it could still rewrite the files locally (which it has to do when there are changes).
â Michael Homer
27 mins ago
Yes, I'm sure (I checked withiotop
). I know about the delta-transfer algoritm, the question was why it didn't work.
â Eugene Yarmash
8 mins ago
Because the files are really different? Check them withmd5sum
.
â Ipor Sircer
6 mins ago
add a comment |Â
up vote
0
down vote
read the fine manual of rsync:
It is famous for its
delta-transfer algorithm, which reduces the amount of data sent over
the network by sending only the differences between the source files
and the existing files in the destination.
I think you're getting read i/o, not write. Are you sure in rsync overwrite the files and not only scanning the content of them?
I don't think this quote illustrates what you want it to, since regardless of what goes over the network traffic it could still rewrite the files locally (which it has to do when there are changes).
â Michael Homer
27 mins ago
Yes, I'm sure (I checked withiotop
). I know about the delta-transfer algoritm, the question was why it didn't work.
â Eugene Yarmash
8 mins ago
Because the files are really different? Check them withmd5sum
.
â Ipor Sircer
6 mins ago
add a comment |Â
up vote
0
down vote
up vote
0
down vote
read the fine manual of rsync:
It is famous for its
delta-transfer algorithm, which reduces the amount of data sent over
the network by sending only the differences between the source files
and the existing files in the destination.
I think you're getting read i/o, not write. Are you sure in rsync overwrite the files and not only scanning the content of them?
read the fine manual of rsync:
It is famous for its
delta-transfer algorithm, which reduces the amount of data sent over
the network by sending only the differences between the source files
and the existing files in the destination.
I think you're getting read i/o, not write. Are you sure in rsync overwrite the files and not only scanning the content of them?
answered 55 mins ago
Ipor Sircer
9,8731921
9,8731921
I don't think this quote illustrates what you want it to, since regardless of what goes over the network traffic it could still rewrite the files locally (which it has to do when there are changes).
â Michael Homer
27 mins ago
Yes, I'm sure (I checked withiotop
). I know about the delta-transfer algoritm, the question was why it didn't work.
â Eugene Yarmash
8 mins ago
Because the files are really different? Check them withmd5sum
.
â Ipor Sircer
6 mins ago
add a comment |Â
I don't think this quote illustrates what you want it to, since regardless of what goes over the network traffic it could still rewrite the files locally (which it has to do when there are changes).
â Michael Homer
27 mins ago
Yes, I'm sure (I checked withiotop
). I know about the delta-transfer algoritm, the question was why it didn't work.
â Eugene Yarmash
8 mins ago
Because the files are really different? Check them withmd5sum
.
â Ipor Sircer
6 mins ago
I don't think this quote illustrates what you want it to, since regardless of what goes over the network traffic it could still rewrite the files locally (which it has to do when there are changes).
â Michael Homer
27 mins ago
I don't think this quote illustrates what you want it to, since regardless of what goes over the network traffic it could still rewrite the files locally (which it has to do when there are changes).
â Michael Homer
27 mins ago
Yes, I'm sure (I checked with
iotop
). I know about the delta-transfer algoritm, the question was why it didn't work.â Eugene Yarmash
8 mins ago
Yes, I'm sure (I checked with
iotop
). I know about the delta-transfer algoritm, the question was why it didn't work.â Eugene Yarmash
8 mins ago
Because the files are really different? Check them with
md5sum
.â Ipor Sircer
6 mins ago
Because the files are really different? Check them with
md5sum
.â Ipor Sircer
6 mins ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479649%2fdoes-rsync-completely-overwrite-files-with-different-timestamps%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password