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.
Hello, my problem is that I have about 20 virtual disks, and I use rsync to backup them,
but if I only change a byte of one disk, rsync will transfer the whole disk.
Is there any software to just transfer what I changed instead of the whole file?
Yes rsync does this.
This is the command I use to backup my "home-source" data directory to "home-destination" directory on a second drive partition.
"home-source" backup to sdb6 "rsync -auvpH home-source/ /mnt/hd/home-destination/"
This does incremental backups, with the same permissions.
Do some reading on the web to find what the options are doing; and if it suits you.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
hywei, did you get this worked out? Not clear from your original post whether it would be a problem with how you are specifying the details to rsync, or whether perhaps you are dealing with disk images for virtual systems. If the latter, and you are using rsync from outside those virtual systems, then rsync will see the disk image as a single file, and that could be a problem. If you run rsync from within the virtual system, then you can be more appropriate and conservative in what you copy. It is sort of like the idea of backing up your data rather than your whole system on the assumption that you will reinstall the OS and recover the data.
However, there may be some tricks you can apply to get virtual system disk images copied efficiently, if that's what you are doing and what you want to do. See, for example, http://www.finalcog.com/rsync-vm-spa...ace-kvm-vmware.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.