mirror slackware current script failing
Hoping Eric picks this up. I am using the mirror-slackware-current script as so:-
Quote:
Anyway, resumed with the -f switch, and saved the current (18th july) to my local HD. Trouble is, when running slackpkg upgrade-all, nothing is upgraded. I have checked the directories, i.e. //home/ftp/pub/Linux/Slackware/slackware64-current/blah-blah and the latest updates have been downloaded OK, but slackpkg doesn't see them. I thought, fine, some problem with the download, so I went through the process again, including using the -f switch as shown here:- Code:
Changing to /home/ftp/pub/Linux/Slackware/slackware64-current ... How do I get the downloaded updates to install? |
It is not quite clear to me what you want to achieve. Do you want slackpkg to update your installed system from the mirror you created?
|
Did you run slackpkg update first?
samac |
Exactly what directory have you to created to place your local mirror, where did you place it on your system, what is the path to your local mirror?
|
Have used this method for the past 6 months or so, so the script used to work correctly. All updates are saved to
Quote:
Quote:
Any more suggestions? |
try switching to rsync_current.sh to make sure your repository is up to date with the official repository
|
OK,
turns out the changelog.txt file got corrupted. Deleted it and all is well again. But as a suggestion to Eric if he happens to read this thread. And I don't know how feasable it would be as I have no idea about programming. But would it be possible to somehow have the script write a progress log as it's going along, so if it is interrupted for some reason, it could pick up where it left of. Or is that what the -f switch is meant to do and I've just been caught out? |
The script is using rsync, so it should anyways start from where it was interrupted, if I am not wrong.
|
Quote:
Eric |
Quote:
|
Quote:
You have to realize that the mirror-slackware-current.sh script tries to be friendly to mirror servers - instead of just starting a full re-sync the script will initially only download the ChangeLog.txt file and check for differences to the version you already have locally. If no difference is detected, the script assumes that you already have a full local mirror copy of Slackware. In the case of an aborted sync attempt, your local ChangeLog.txt will usually be identical to the original and running the script again - with the same parameters - will not give the desired effect. That is when you add "-f" to force a re-sync. Because the script uses rsync for the synchronization of your local mirror to the remote original, the script is able to continue downloading right where you aborted it before. Only the file for which a download was in progress, will have to be downloaded in full again. Eric |
Thanks, that clears that up.
I don't suppose you had considered, (or maybe would consider) some sort of prompt asking the user if they maybe wanted to backup their 'current' current as opposed to the 'yet to be synced' current to allow some sort of roll back. I do that now as a result of the broken mirroring I experienced by using the backintime utility, but it would be so much better if it were built into your script. If I knew anything at all about programming I would have ago for myself, but unfortunately that's not to be. |
I understand what you mean, but I will not add that functionality to the script. If you think you may need an older version of Slackware-current package tree just to be safe, you have to create that backup copy yourself.
Eric |
No problem.
It was worth the ask. Just don't pinch the idea in a years time;) |
All times are GMT -5. The time now is 05:56 PM. |