Script de création et maintient d'un miroir Slackware local
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Doug Le Tough c9a6ee888e README adjustments 4 years ago
.gitignore first commit 4 years ago
LICENSE.TXT first commit 4 years ago
README.md README adjustments 4 years ago
slackmirror.sh first commit 4 years ago

README.md

slackmirror

slackmirror.sh is a simple bash script written by Doug Le Tough.

  • This script will : Automatically mirror the choosen version of a slackware hierarchy tree on to you computer using rsync.

  • Requirements : This script should run with any standard Slackware installation and you will need these softwares installed : rsync

Installation instructions :

Copy and paste to your favorite text editor the following source code

1 - Save it where it suits you (ie. /usr/local/bin/slackmirror.sh)

As root user, make it executable with this command line : chmod +x /usr/local/bin/slackmirror.sh

2 - Browse the source code and define the following variables to suit your needs :

  • VERSION : The Slackware version number you want to mirror (actually 14.2). This could be set to current if needed.
  • REMOTE_URL : The distant rsync folder from the slackmirror.sh script will get the files (default value should be good for everyone)
  • LOCAL_REP : The local folder where the slackmirror.sh script will synchronize with the slackware current tree

You can also exclude some folders from the synchronization process by setting successive --exclude parameters (see example on the commented line #29).

3 - That's all folks

Usage :

The slackmirror.sh script need some mandatory arguments to run properly :

The slackmirror.sh script allow you to synchronize with the 32 bits and the 64 bits Slackware tree :

This is done by giving the -32 parameter for 32 bits or the -64 parameter for 64 bits to the slackmirror.sh :

slackmirror.sh -32

or

slackmirror.sh -64

You can synchronize both 32 bits and 64 bits slackware tree under the same directory (LOCAL_REP) without any problem.

This script is released under the WTFPL 2.0 and you can send me an email for :

  • Bug reports
  • Suggestions
  • Insults
  • Whatever reasons you want

to : doug.letoughfree.fr (replace by a valid @)