5 ms·
Don’t walk the folder and ‘rsync’ each file you encounter If I just tell rsync to syncronise between two directories, what does it do internally? I might have
by omh 15y ago
Don’t walk the folder and ‘rsync’ each file you encounter
If I just tell rsync to syncronise between two directories, what does it do internally? I might have assumed that it does the more naive option, but in practice it seems to do a lot of upfront calculation that suggests it's doing something more sophisticated.
- deleted 15y ago[deleted]
- pronoiac 15y agoRsync will compare timestamps, to only transfer changed files.
- paxswill 15y agoThe default behavior also checks file size in addition to modification time.
- burgerbrain 15y agoIs there a purpose to that?
- ominous_prime 15y agoModification time can be altered, or incorrect. File size is just another fast check that can be done with the same data return by stat'ing the file. Rsync can also compare hashes if you don't trust the size and time on the files.