Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to rsync the big files, all bigger than 20GB from one directory to another in the same server. The file gets touched every hour or it might just make minute change to files but when the rsync is run, it will again rsync all the big files from beginning for a long time even when little have changed. I have tried rsync with all the option I can imagine --inplace, -c, -no-whole-file but have not been able to do it faster to copy the files from one directory to another. How do I do the delta-transfer in same server. Thank you for your input. :-)
I am trying to rsync the big files, all bigger than 20GB from one directory to another in the same server. The file gets touched every hour or it might just make minute change to files but when the rsync is run, it will again rsync all the big files from beginning for a long time even when little have changed. I have tried rsync with all the option I can imagine --inplace, -c, -no-whole-file but have not been able to do it faster to copy the files from one directory to another. How do I do the delta-transfer in same server. Thank you for your input. :-)
I don't know the rsync algorithm in detail, but I guess the source file needs to be scanned to compare it to the destination file? In essence, it needs to be read in its entirety to figure out which blocks were modified. If I am right, you don't gain anything. rsync is useful when you transfer your files over a link that is slower than your disks.
Of course it has to re-calc the delta each time, its not magic you know
As you say, for a local disk-to-disk or on the same disk/partition, a straight/full copy each time might be quicker.
You'd really have to do some tests to check.
I think, from memory (and I am pointing out that this is a wildly unreliable resource!) that this is in area in which Unison can be more efficient than rsync. Well, if you have huge files, even if, conceptually, you diff them and send the differences compressed that can be problematic, too, for most applications the conduit between the source and destination locations is the bottleneck, and, in that case, unison can be slicker.
I'd put this in to the category 'worth checking out', but YMMV.
Edit
I'd be in dereliction of my duty (...whatever that is...) if i didn't point out that I've just noticed that there is a running thread 'Rsync vs Unison'
OTOH, don't get your hope up that high, as it probably isn't going to be as useful to you as you might think from the title, as the implied use case is quite different from yours.
Just something to evolv. Maybe lvm snapshots could help here. Starting from a synced point you activate lvm snapshot on the source directory. Then after some time you grab that snapshot and put the changes onto the destination. Then start a new snapshot on source. Have no clue if this is even remotly possible but this way you would at least have only the delta somewhere.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.