Recovering from interrupted update of mirror
I have been using slackkg to follow current since 14.0, but still fairly new to that mindset.
I use Eric's mirror-slackware-current.sh script to update a local mirror, then use slackpkg across my LAN to update and install. Last night I was syncing my local mirror using... Code:
SLACKROOTDIR=/path/to/sw-current/tree ./mirror-slackware-current.sh -f -o NONE Later I restarted it and the internet went down again so I killed it and went to bed. This left my local mirror in an indeterminate state. I am guessing that rsync is smart enough to pick up where it left off, but I am less clear about how the ChangeLog.txt is used to identify the updates in the script. So I manually edited the local ChangeLog.txt to remove the Sep 25 and 29 sections, then ran the update again. It appeares to have worked normally and completed within a few minutes (typical for my connection). I am looking for reassurance that my local repo should be fixed by these actions before using it to update a machine. How do seasoned Slackers recover from interrupted mirror updates? Is there anything else I should do to be sure? TIA |
since it's using rsync, no worries about interrupted update. It will tries to sync again
|
if I have understood correctly how Eric's script works, after having verified if there's differences between the local and the remote ChangeLog.txt it runs an rsync in either case that will do a sync between the remote and the local folder, so you should have an up-to-date local mirror at the end, no matter if it got interrupted in a previous attempt or not.
EDIT: ups, willy beated me ;) |
Thanks willysr and ponce.
I thought so but wanted reassurance from my betters before borking a machine. Until now I have always been paranoid about bulk updates and did everything with installpkg/upgradepkg, one at a time. My experience using slackpkg with local mirror thus far has been flawless I want to keep that up if possible! |
Quote:
|
Quote:
It's not just you who is downloading this stuff, you know. Users of my mirror-slackware-current.sh script should realize that it has a help function explaining the possible parameters to the script: Code:
$ mirror-slackware-current.sh -h |
Quote:
Code:
>>> time rsync_current.sh By the way, everyone who wants can use my mirror (slackeee.de::slackware) for syncing their own local mirrors, I don't mind that. |
Quote:
Yes, the excellent help function is what got me going in the first place! I always run manually so that I know that it all worked, but would not have immediately thought of the consequences of using -f in a scheduled script. Always good to hear the reasons why things work the way they do from the designer himself! And thanks for the mirror script! |
All times are GMT -5. The time now is 09:26 AM. |