Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
07-29-2006, 04:43 PM
|
#16
|
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
I 'thought' that was the case, but it seemed in the notes that it would only build the isos, not rsync...
Thanks for the tip. And the clarification.
|
|
|
|
07-29-2006, 04:54 PM
|
#17
|
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Now for something slightly more esoteric:
Ok. Server1 mirrors/builds the isos.
Is there a quicky way for Server2 and Server3 to sync with Server1?
Reason I ask, dd or cp chews my lan bandwidth. And I have 2 servers on my lan, (backup, you know?) and a laptop I do nfs installs with.
Thanks. Keep your towel handy.
|
|
|
|
07-29-2006, 05:20 PM
|
#18
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,686
Rep: 
|
Quote:
|
Originally Posted by cwwilson721
I 'thought' that was the case, but it seemed in the notes that it would only build the isos, not rsync...
|
I updated the script's help text to make that clearer: http://www.slackware.com/~alien/tool...are-current.sh
Quote:
|
Is there a quicky way for Server2 and Server3 to sync with Server1?
|
I'm not sure I understand your question... is an rsync not the right tool for you? Something like
Code:
$ rsync -va -e ssh me@Server1:/path/to/slackware-current .
on Server2 and/or Server3 ? Lots of disk space wasted if you ask me, one copy would be enough and you have NFS?
Eric
|
|
|
|
07-29-2006, 05:23 PM
|
#19
|
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Not the most reliable of 'servers'...lol. I have had controller failures, and hdd failures. Just my own paranoia.
And that is EXACTLY what I was looking for. Hate wasting bandwidth to the outside world.
|
|
|
|
08-05-2006, 10:26 PM
|
#20
|
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
A possible improvement:
How easy or difficult would it be to have a progress bar (like in swaret or even, i think wget), so we would know it is actually doing something, or stalled?
Reason why I ask is my internet cut out in a storm and the script was still running on a different terminal. I restored the connection for the os, but the script stayed at the same place for the next two days (My bad. I forgot it was running on a different terminal)
Is it feasible?
|
|
|
|
08-06-2006, 06:00 AM
|
#21
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,686
Rep: 
|
Quote:
|
Originally Posted by cwwilson721
How easy or difficult would it be to have a progress bar (like in swaret or even, i think wget), so we would know it is actually doing something, or stalled?
|
Try the latest version of the script at http://www.slackware.com/~alien/tool...are-current.sh
If you use the script parameter ' -v' (for 'verbose') you should see progress report on all transfers.
Cheers, Eric
|
|
|
|
08-06-2006, 06:26 AM
|
#22
|
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Sorry to make all these revisions...lol
But if it works the way I hope it does...
Actually, I'm not really sorry. I hope my questions have helped 'evolve' this nice piece of code.
|
|
|
|
08-06-2006, 07:02 AM
|
#23
|
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 633
Rep:
|
Quote:
|
Originally Posted by Alien Bob
I'm not sure I understand your question... is an rsync not the right tool for you? Something like
Code:
$ rsync -va -e ssh me@Server1:/path/to/slackware-current .
on Server2 and/or Server3 ? Lots of disk space wasted if you ask me, one copy would be enough and you have NFS?
|
Not sure if I agree. I'd like to keep a complete copy of the official mirror's slackware and slackware-current directories on my main server. This to be able to use your script to burn a current-iso at any time, and at the same time have the stable also handy.
Then, for the end-user laptops and desktops, I'd like to have only -current stored locally in the /root directory, so that it's relatively easy to do an upgradepkg whenever something interesting shows up in Pat's -current. One gigabyte give or take means nothing on relatively modern systems, at least not to me.
Thus it'd be great to have a script that on the server syncs _everything_, but on the various PCs skip KDEI, kernels, aaa* and others which I wouldn't want to use with upgradepkg --installnew */*.tgz anyway.
Doable?
-Y1
|
|
|
|
08-09-2006, 09:28 PM
|
#24
|
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Alien:
Works like a charm. I'll let you know if I come up with anything else....lol
Keep up the good work.
|
|
|
|
08-09-2006, 10:57 PM
|
#25
|
|
Senior Member
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,515
Rep:
|
Just an FYI really here, I'm using the rsync script for slack 10.2 and it's working flawlessly for me and I thank ya Eric.
|
|
|
|
08-09-2006, 11:11 PM
|
#26
|
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
Yep. It just works. Always had, just minor improvements.
|
|
|
|
08-15-2006, 04:48 AM
|
#27
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,686
Rep: 
|
FYI I hacked the script a litle so it now understands the "-r" option. Using that commandline option you are now also able to mirror and create ISOS for another release than just -current:
Try something like
Code:
./mirror-slackware-current.sh -f -v -o DVD -r 10.2
to mirror Slackware 10.2 and create a DVD ISO image for it, while getting a lot of verbose output in the process.
Eric
|
|
|
|
08-15-2006, 12:37 PM
|
#28
|
|
Member
Registered: Feb 2004
Location: WA
Distribution: Slackware
Posts: 230
Rep:
|
Eric, will this create a 10.2 release DVD ISO or a 10.2 with all of the updates DVD ISO? Just curious.
MagicMan
Last edited by fcaraballo; 08-15-2006 at 12:39 PM.
|
|
|
|
08-15-2006, 04:26 PM
|
#29
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,686
Rep: 
|
Quote:
|
Originally Posted by MagicMan
Eric, will this create a 10.2 release DVD ISO or a 10.2 with all of the updates DVD ISO? Just curious.
MagicMan
|
The DVD ISO you create with the script will contain everything in the slackware-10.2 tree. That includes the /patches directory i.e. all updates to Slackware 10.2 will be available on the DVD for post-installation.
Eric
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:32 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|