Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 have set up a backup solution on one of my home computers utilizing rsync.
I am now wondering what happens if one of my rsync-s is interrupted before completion?
Say we have a following situation: I have downloaded the latest OpenSUSE dvd and rsync is now backing it up. What will happen if I interrupt the process? The next time I run the same rsync command, will it continue where it was interrupted?
I just want to ensure that my backups can be trusted
Answering my own question for any future reference, here is a quote from the man pages:
Quote:
By default, rsync will delete any partially transferred file if the transfer is interrupted. In some circumstances it is more desirable to keep partially transferred files. Using the --partial option tells rsync to keep the partial file which should make a subsequent transfer of the rest of the file much faster.
Although I guess it may not be a good idea to use this option. What if the original large file changes after the interrupted sync, but before a resync occurs? Does rsync match the partially copied file to the original file to see whether any changes have been made in the meantime?
Hello,
I've done some testing using "rsync -Ph" (-P is equivalent to --partial --progress wich shows the progress and -h is for human readable) and it seems to always restart the transfer at the beginning of the file (either if the partial destination file has been modified or not). So I think --partial is only to force the "commit" of a partial transfer instead of canceling it.
Last edited by antegallya; 01-06-2009 at 06:46 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.