Originally Posted by glore2002
Thanks for the script!
I've changed the parameter to create a DVD ISO instead of CD. What else do you change in the script?
Did you read his blog post that I linked?
TIP: If you want to change the default values of the script, do not edit
the script itself. Instead run “mirror-slackware-current.sh -w” which will
create the file “mirror-slackware-current.conf” in the same directory as
“mirror-slackware-current.sh”. If you edit the variable values in “mirror-
slackware-current.conf” the script will use those.
That is what I have done, and now have the script rsync Slackware -current for our 32-bit
machines and Slackware64 -current for the 64-bit ones. The scripts run every night (here)
in a cronjob with these commands (also two others commented):
# Keep the Slackware patches up to date for the server
30 4 * * * /usr/local/sbin/rsync_slackware_patches.sh -q -r 10.1
# Keep the Slackware-12.2 pathces up to date
00 3 * * * /usr/local/sbin/rsync_slackware_patches-12.2.sh
# Keep the Slackware -current tree in sync:
00 2 * * * /usr/local/sbin/mirror-slackware-current.sh -v
# Keep the Slackware64 -current tree in sync:
15 1 * * * /usr/local/sbin/mirror-slackware64-current.sh -v
When the script runs with -v (verbose output) I read:
Enabling verbose output....
# Checking version of 'http://www.slackware.com/~alien/tools/mirror-slackware-current.sh' ...
# You have the most recent version of this script
so I know if Alien Bob has updated the script. If so, I download the new version
to /usr/local/sbin/mirror-slackware-current.sh. This replaces the old one, but it
is not necessary to change the options, because they are now all set in the config
file -> /usr/local/sbin/mirror-slackware-current.conf
To answer your question "What else do you change in the script?" On my server there
are two scripts which are symlinked and individually placed in my crontab. One is for
Slackware -current, and the other for Slackware64 -current. Here's what I have now.
Note I used egrep to just display the uncommented lines in those files:
mingdao@paul:~$ egrep -v "(^#|^ *$)" /usr/local/sbin/mirror-slackware-current.conf
BUILDER="Bruce Hill, Jr. <email munged>"
mingdao@paul:~$ egrep -v "(^#|^ *$)" /usr/local/sbin/mirror-slackware64-current.conf
BUILDER="Eric Hameleers <email munged>"
My options change at different times. For instance, when Slackware-13.0
comes out I will rsync it but exclude all directories except ./patches.
Also, after Slackware-13.0 is released, when the new -current starts up
again, I will exclude everything except ./slackware because that is all
that I use during -current testing phase. Since we are (hopefully) close
to a stable release of Slackware-13.0, presently I am keeping the entire
tree in sync. That way when 13.0 is released, I can run alpha_geek's slidgo
scripts and just update/change my -current mirror to 13.0.
The command rsync is better than wget IMO in many ways, but particularly
for this use because rsync checks the files on source against destination,
which keeps you from having corrupt source when you finish.