LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-11-2015, 04:07 PM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,375

Rep: Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969
Mirror Slackware stable + patches?


Hi,

In my office I have a local Slackware mirror in -current. To keep it in sync I'm using Eric's mirror-slackware-current.sh script which I got from here:

http://www.slackware.com/~alien/tools/

Now I wonder what's the easiest (!) way to mirror Slackware stable (including patches) on a local server. Our local school has rather poor bandwidth, so I thought the easiest way to speed things up would be to create a local repository (accessible via HTTP) and then mirror the whole Slackware tree there. Some client machines also only have a CD-Rom drive (no DVD), so this would make installations easier.

I'm doing the same thing for my MLED repositories, where I have written a small script that synchronizes the whole tree. Unfortunately, the ISP where I'm hosting this doesn't offer rsync, so I wrote a little script to "emulate" rsync with lftp. Here it is:

Code:
#!/bin/bash
LFTP=$(which lftp)
CWD=$(pwd)
LOCALDIR="/var/www/vhosts/mirror/microlinux"
REMOTESERVER="ftp.microlinux.fr"
REMOTEDIR="/html/microlinux"
echo
if [[ -z $FTPUSER ]]; then
  read -p "FTP username: " FTPUSER
fi
if [[ -z $FTPPASS ]]; then
  PROMPT="FTP password: "
  while IFS= read -p "$PROMPT" -r -s -n 1 CHAR; do
    if [[ $CHAR == $'\0' ]]; then
      break
    fi
    PROMPT='*'
    FTPPASS+="$CHAR"
  done
  echo 
fi
$LFTP -c "set ftp:list-options -a;
open ftp://$FTPUSER:$FTPPASS@$REMOTESERVER;
lcd $LOCALDIR;
cd $REMOTEDIR;
mirror --continue --dereference --parallel=1 --delete --verbose "
Any suggestions?

Niki
 
Old 12-11-2015, 05:16 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,311

Rep: Reputation: 5485Reputation: 5485Reputation: 5485Reputation: 5485Reputation: 5485Reputation: 5485Reputation: 5485Reputation: 5485Reputation: 5485Reputation: 5485Reputation: 5485
You know that "mirror-slackware-current.sh" can mirror any release, not just -current, right?
 
Old 12-11-2015, 05:34 PM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,375

Original Poster
Rep: Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969
Quote:
Originally Posted by Alien Bob View Post
You know that "mirror-slackware-current.sh" can mirror any release, not just -current, right?
Indeed. I just discovered the RELEASE variable in the script. I guess it's time to call it a day for today.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is more stable: Slackware or Debian Stable ? Xeratul Slackware 100 11-14-2015 11:07 PM
[SOLVED] how to update stable 14.1 from /patches directory [without slackpkg] nitecrawler Slackware 15 09-21-2015 02:39 AM
Grsecurity stable patches to be limited to sponsors jeremy Linux - News 0 08-27-2015 11:43 AM
patches for a release version or slackware/slackware-ver.#/patches acummings Slackware 2 07-05-2007 02:05 AM
Installing KDE3.1.3 on stable system using the "stable" mirror at download.kde.org preben Debian 8 08-28-2003 08:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration