LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-14-2011, 07:28 PM   #1
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 246
Blog Entries: 16

Rep: Reputation: 25
using rsync to keep local copy of stable tree up to date


Hi all,

Just for fun, when I installed 13.37 I created a local copy of the entire stable tree (source/ and all the rest) just to have all that stuff around to browse offline.

Now, to instruct myself, I'm trying to use rsync to keep this stuff up to date. But I seem either to have misread the rsync man page or ... well, I don't know. I am issuing the following command and getting the results seen below:

Code:
rsync -u slackware.mirrors.tds.net:/pub/slackware/slackware/ slackware/
ssh: connect to host slackware.mirrors.tds.net port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(601) [Receiver=3.0.8]
I'd be grateful for any hints as to what I'm doing wrong.

Thanks,

Glenn
 
Old 05-14-2011, 07:43 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
When you try it the way you are doing it rsync tries to connect to the server via SSH using your username. This obviously will not work. You need to connect to the rsync-daemon that is running on that machine.

You may want to have a look at AlienBobs script rsync-current, it does exactly what you want and is a perfect example for connecting to a rsync-daemon.
 
1 members found this post helpful.
Old 05-14-2011, 08:26 PM   #3
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 246

Original Poster
Blog Entries: 16

Rep: Reputation: 25
Quote:
Originally Posted by TobiSGD View Post
When you try it the way you are doing it rsync tries to connect to the server via SSH using your username. This obviously will not work. You need to connect to the rsync-daemon that is running on that machine.

You may want to have a look at AlienBobs script rsync-current, it does exactly what you want and is a perfect example for connecting to a rsync-daemon.
Thanks. It helps to have a good example to look at!
 
Old 05-15-2011, 02:59 PM   #4
lazardo
Member
 
Registered: Feb 2010
Location: SD Bay Area
Posts: 270

Rep: Reputation: Disabled
Code:
rsync -avP \
rsync://slackware.oregonstate.edu/slackware/slackware64-13.37/ . \
--delete --delete-after -n
First run with '-n', second without.
 
1 members found this post helpful.
  


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 syntax for local copy hoover93 Linux - Software 3 12-21-2012 02:39 AM
Most stable and upto date source distribution clinux_rulz Linux - Distributions 12 01-10-2006 12:03 AM
How to copy tree without files in it? BladeRunner Linux - Newbie 6 03-22-2004 01:01 PM
which version of debian is stable but up to date? r3dhatter Debian 3 03-15-2004 07:44 AM
Next Stable Release Date? thcmwz Debian 2 12-05-2003 07:34 AM

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

All times are GMT -5. The time now is 07:56 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