SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
mirror slackware current script failing
Hoping Eric picks this up. I am using the mirror-slackware-current script as so:-
Quote:
Mirroring slackware64-current from rsync.osuosl.org::slackware/slackware64-current
While it was running my laptop threw one and crashed. I think it's got it in for me
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 ...
Wed Jul 18 20:38:44 BST 2012 [15040]: Getting ChangeLog.txt...
Wed Jul 18 20:38:46 BST 2012 [15040]: No difference found, continuing anyway...
*** Using rsync.osuosl.org::slackware/slackware64-current ***
Wed Jul 18 20:38:55 BST 2012 [15040]: Done mirroring slackware64-current (exit code 0).
Wed Jul 18 20:38:55 BST 2012 [15040]: Creating CDROM ISO images for slackware64-current...
Wed Jul 18 20:39:12 BST 2012 [15040]: First CDROM ISO created (exit code 0) - two to go ...
Wed Jul 18 20:39:37 BST 2012 [15040]: Second CDROM ISO created (exit code 0) - one to go ...
Wed Jul 18 20:40:10 BST 2012 [15040]: CDROM ISO's created of slackware64-current.
Wed Jul 18 20:40:10 BST 2012 [15040]: The combined exit code for ISO creation is '0'. A a non-zero number here means: something goofed along the way.
Wed Jul 18 20:40:10 BST 2012 [15040]: Computing MD5 checksums of the ISO's (time consuming).
Wed Jul 18 20:40:48 BST 2012 [15040]: Resulting ISO files:
-rw-r--r-- 1 root root 686125056 Jul 18 20:39 /home/ftp/pub/Linux/Slackware/slackware64-current-iso/slackware64-current-install1.iso
-rw-r--r-- 1 root root 550055936 Jul 18 20:39 /home/ftp/pub/Linux/Slackware/slackware64-current-iso/slackware64-current-install2.iso
-rw-r--r-- 1 root root 608284672 Jul 18 20:40 /home/ftp/pub/Linux/Slackware/slackware64-current-iso/slackware64-current-install3.iso
Wed Jul 18 20:40:48 BST 2012 [15040]: Done!
As can be seen, all that happens is the iso are recreated, but the packages are not re-downloaded as I thought they should be.
and it has been fine for 6 months. But since the laptop crashed during the rsync phase of downloading the latest updates, then the script seems not to be able to recover from that crash.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
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?
What? Indeed it should carry on where it left off, or I have been caught out and misunderstood it's meaning.
The "-f" parameter means "force a re-sync even if it appears the local copy of ChangeLog.txt is identical to the remote original".
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.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.