LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-03-2004, 05:43 PM   #1
nikko
LQ Newbie
 
Registered: Oct 2003
Distribution: Knoppix,Slackware
Posts: 10

Rep: Reputation: 0
rsync and slackware-current


I like to keep a fairly fresh mirror of slackware-current on my network, for various reasons. I noticed that over a short period of time, the iso I create from it has gotten too big to fit on a CD. I started digging and the reason became quickly obvious. My mirror has all versions of every file since I started rsync'ing! Is there a way to update slackware-current without having to blow away my entire mirror every time I want to get in sync?

An example:
aaa_lib_2.4.26_1.tgz
aaa_lib_2.4.26_2.tgz
aaa_lib_2.4.26_3.tgz

are all updates of the same libs. How can I just update what's there to the latest, keeping only the latest file (and filename)

This would save me lots of bandwidth as well, because only the differences would be brought over with rsync vs. the entire file.
 
Old 06-05-2004, 07:50 AM   #2
Norinett
LQ Newbie
 
Registered: Jun 2004
Posts: 14

Rep: Reputation: 0
Use the "--delete" option with rsync. It will clean up the old files.
 
Old 06-05-2004, 01:06 PM   #3
nikko
LQ Newbie
 
Registered: Oct 2003
Distribution: Knoppix,Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
It'll do this with files with different names? How does it know one is a replacement for the other?
 
Old 06-05-2004, 03:16 PM   #4
zulik
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Rep: Reputation: 15
zulik@localhost:~$ cat /home/data/skrypty/upd
#!/bin/bash
rsync -arvvP --delete ftp.slackware.at::slackware/slackware-current/slackware /home/data/swaret
ln -s /home/data/swaret/slackware/FILE_LIST /home/data/swaret/slackware/FILELIST.TXT
swaret --update
 
Old 06-06-2004, 04:33 PM   #5
Norinett
LQ Newbie
 
Registered: Jun 2004
Posts: 14

Rep: Reputation: 0
With the "--delete" option, rsync simply makes it a real mirror of the site you are mirroring. Without it you are leaving old files on your hd.

It checks if there is local files that not exist on the remote site, and delete them if there is. And ofcourse otherwise.

[root@*] [~]# more /usr/local/sbin/mirrorslackware
rsync -a -v --delete rsync://rsync.slackware.no/slackware/slackware-current /home/ftp/pub/mirrors/slackware/

Works fine.

Last edited by Norinett; 06-06-2004 at 04:34 PM.
 
Old 06-07-2004, 12:49 AM   #6
zulik
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Rep: Reputation: 15
Quote:
Originally posted by Norinett
With the "--delete" option, rsync simply makes it a real mirror of the site you are mirroring. Without it you are leaving old files on your hd.

It checks if there is local files that not exist on the remote site, and delete them if there is. And ofcourse otherwise.

[root@*] [~]# more /usr/local/sbin/mirrorslackware
rsync -a -v --delete rsync://rsync.slackware.no/slackware/slackware-current /home/ftp/pub/mirrors/slackware/

Works fine.

Works fine !?

Trust me "ln -s" between FILE_LIST and FILELIST.TXT is necessery
 
Old 06-07-2004, 01:59 AM   #7
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Quote:
[i]
[root@*] [~]# more /usr/local/sbin/mirrorslackware
rsync -a -v --delete rsync://rsync.slackware.no/slackware/slackware-current /home/ftp/pub/mirrors/slackware/

Works fine. [/B]

Actually I am mirroring from slackware.no likewise and using --delete option and few daya ago someone on that server deleted complete slackware-current directory and rsync deleted everything from my disk also....
Pretty frustrating.....$@#%@#^%$#$^@...damn


I am keeping two repositories on my HD now
 
Old 06-07-2004, 03:35 AM   #8
Norinett
LQ Newbie
 
Registered: Jun 2004
Posts: 14

Rep: Reputation: 0
Quote:
Originally posted by zulik
Works fine !?

Trust me "ln -s" between FILE_LIST and FILELIST.TXT is necessery
The official mirror has no "FILE_LIST", so why should I need it?
 
Old 06-07-2004, 03:36 AM   #9
Norinett
LQ Newbie
 
Registered: Jun 2004
Posts: 14

Rep: Reputation: 0
Quote:
Originally posted by AxeZ
Actually I am mirroring from slackware.no likewise and using --delete option and few daya ago someone on that server deleted complete slackware-current directory and rsync deleted everything from my disk also....
Pretty frustrating.....$@#%@#^%$#$^@...damn


I am keeping two repositories on my HD now
Strange... I mirror it daily, and that has not happend to me..
 
Old 06-07-2004, 03:48 AM   #10
zulik
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Rep: Reputation: 15
Quote:
Originally posted by Norinett
The official mirror has no "FILE_LIST", so why should I need it?
ftp://ftp.slackware.at/slackware-current/slackware/

position nr 3

1: look at my script ( I'm downloading only ftp.slackware.at/slackware-current/slackware/)
not all file from ftp://ftp.slackware.at/slackware-current/

2: swaret use FILELIST.TXT
 
Old 06-07-2004, 04:50 AM   #11
Norinett
LQ Newbie
 
Registered: Jun 2004
Posts: 14

Rep: Reputation: 0
Ah, but I'm mirroring the whole slackware-current :-)
 
Old 06-07-2004, 05:10 AM   #12
zulik
LQ Newbie
 
Registered: Mar 2004
Posts: 25

Rep: Reputation: 15
So on seriously, why you need the whole ?
 
Old 06-07-2004, 08:34 AM   #13
Norinett
LQ Newbie
 
Registered: Jun 2004
Posts: 14

Rep: Reputation: 0
I'm creating my own installcd's now and then, based on the current version, but heavy modifyed by myself.
 
Old 06-07-2004, 08:49 AM   #14
nikko
LQ Newbie
 
Registered: Oct 2003
Distribution: Knoppix,Slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by zulik
So on seriously, why you need the whole ?
I use it in cobination to mkisofs and cdrecord to make my own boot cd's based on slackware-current. I build new systems offline with it. I keep it current, well, to keep it current.
 
  


Reply



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
Rsync over Current SSH Connection tracer Linux - General 1 09-23-2005 07:39 AM
how do I rsync & cron to fetch -current weekly? chess Slackware 3 09-11-2005 10:07 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
Copying from Slackware 10 to Debian Sarge using rsync apolinsky Slackware 5 10-07-2004 09:17 AM
Slackware Current using rsync equilibrium Slackware 5 08-08-2004 12:50 PM

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

All times are GMT -5. The time now is 06:26 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
Open Source Consulting | Domain Registration