I want to mirror the Raspbian Repository from home. The example at http://raspbian.org/RaspbianMirrors says that this can be done in the following way:
rsync --archive --verbose --delete --delete-delay --delay-updates \ archive.raspbian.org::archive /path/to/local/mirror
However, if rsync stops for whatever reason then the whole process needs to be started again. My question now is how this can be prevented and instead be resumed.
What I tried so far:
I had a look into rsync's manual and there I found the
--append-verify flag which exactly seems to do what I want.
Unfortunately: when I add that flag to the command above then I receive the following error message:
rsync: --append cannot be used with --delay-updates rsync error: syntax or usage error (code 1) at main.c(1572) [client=3.1.1]
Accordingly to rsync's manual it looks like that I need
--delay-updates: put all updated files into place at end
If files are updated during the sync process I for sure also want to sync them.
So: how can I rsync the Raspbian Repository while being able to resume the rsync process in case that it stopped? What I need is one complete and integer mirror of the whole Raspian Repository.