I am using WebDAV client to mount ownCloud
folder (or any other cloud's folder) as a driver on my local computer
sudo apt-get install davfs2
mkdir oc
sudo mount.davfs https://b2drop.eudat.eu/remote.php/webdav/ oc
In this scenerio, assume that I have a single compressed file (A.tar.gz
) on the mounted folder and that file is copied into my local directory as B.tar.gz
.
Later that file is updated on the mounted directory and I want to copy only its updated section to my local directory using: rsync --no-whole-file oc/A.tar.gz /home/local/B.tar.gz
, if possible without downloading the whole file.
Based on the the rsync algorithm
only the pieces of A.tar.gz
that are not found in B.tar.gz
plus a small amount of data for checksums and block indexes should be sent over the link between source and the target.
In this scenario, when I use rsync
over mounted folder, during the calculation of the checksum in order to transfer only the parts that have been modified:
=> Does rsync
has to read the whole file, which will lead the complete data to be downloaded into the mounted directory instead of only its updated section?
Please note that there is a good explaination for rsync over sshfs on the following line: Differences between rsync on remote and rsync local on mounted sshfs?
rsync -a /home/local/B.tar.gz user@12.12.12.12:/home/remote/oc/A.tar.gz
, only the modified part of the file and small amount of data for checksums and block indexes should be sent back to local. I cannot ssh to the remote server. On my case, local and remote machine can communicate through using a cloud storage, where local machine share its cloud folder with the remote machine and remote machine download it from there, or using P2P storage likeIPFS
. @cas – alper Sep 30 '19 at 11:56rsync
over ssh, since each end read the file and communicate block cheksums ; overall between two hosts only the modified blocks and block checksums will be transferred. Hence doingrsync
over ssh is better approach thanrsync
on mounted, which will transfer the whole file. @wurtel – alper Oct 04 '19 at 06:54