The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Vi in Leopard Gale Gorman OS X (Apple) 5 09-16-2008 07:08 PM
Emacs in terminal for OS X Leopard USFstudent OS X (Apple) 1 04-04-2008 09:42 AM
Seeking help...Urgent!!! Please help me... blind02002 UNIX for Dummies Questions & Answers 1 07-19-2006 12:08 PM
Rsync problems thangorn UNIX for Dummies Questions & Answers 3 10-25-2002 06:23 AM
seeking a doc on lvm etc... jigarlakhani Filesystems, Disks and Memory 1 07-23-2002 02:12 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-30-2007
compulsiveguile's Avatar
compulsiveguile compulsiveguile is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 3
Problems using rsync in Leopard with SSH... seeking solution/alternative

Precursor: ...it may sound like I'm at least somewhat comfortable with Unix, but I'm far from it. Layman's terms would be greatly appreciated

Okay, so here's the situation. I created a website using iWeb, and I'm not using a .Mac account (you can sync website in one click if you do). Being without .Mac, this is the process I've been following to upload to my site:
  1. Make change to website
  2. Export to a local folder
  3. Upload folder to a webhost via FTP client (GUI)

This was okay at the beginning, but it started to get really old, really fast when it started taking FOREVER to upload files. iWeb makes things difficult because each time you make a change, you overwrite ALL of the folders, thus I can't upload via FTP filtering by date modified.

So I did a little searching and found that you could use something called rsync. Using SSH, this program would upload just CHANGED files to my web server. For the past couple days, I've scurried around trying to determine if my webhost offered SSH, and long story short, I found somebody who's allowing me to use their web space and domain to see if this whole rsync thing works, etc.

So... I got rsync compiled and running (works locally syncing folder to folder), but whenever I try syncing over SSH, it just hangs until I force kill it using ctrl-c. It looks like it's initially working, as I have to enter my password (and if the wrong one's entered, it denies me access immediately). SSH itself doesn't seem to be the problem, as I can log into the server using SSH without a problem.
Here's the syntax I'm using:

Code:
rsync -avz ./iWeb/website/ [membername]@ssh.netfirms.com:[foldername]
I don't know if I'm missing syntax, have the wrong syntax, simply can't do this as of right now with Leopard, didn't compile rsync correctly, etc.

I'm running Mac OS X Leopard on a MacBook Pro (Intel 2.2 GHz, 2GB RAM) so you know. I'm sure much more info is needed to accurately answer this question, so just let me know what info you need. Any help would be greatly appreciated!!!
  #2 (permalink)  
Old 12-29-2007
mistermorris mistermorris is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 1
Try this

I don't know why it's hanging on you, but I don't think you've got the right combination of commands anyway. Possibly it's just taking forever...???

The z option makes it compress, which you don't want because you need these as raw files. You want the c option, which gives it its speed.

Try this one:

rsync -avc ./iWeb/website/ user@site.com:folder

Make sure you have that last '/' there. That's what I kept forgetting!
  #3 (permalink)  
Old 12-29-2007
compulsiveguile's Avatar
compulsiveguile compulsiveguile is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 3
Quote:
Originally Posted by mistermorris View Post
I don't know why it's hanging on you, but I don't think you've got the right combination of commands anyway. Possibly it's just taking forever...???

The z option makes it compress, which you don't want because you need these as raw files. You want the c option, which gives it its speed.

Try this one:

rsync -avc ./iWeb/website/ user@site.com:folder

Make sure you have that last '/' there. That's what I kept forgetting!
I tried everything as you said, and it's still hanging. I have also tried using other options as well while running rsync, and I still got the same result. When I type the command with multiple v's I eventually get a sort of time-out error, thus I'm pretty sure it's not just taking forever.

I contacted my webhost, and they informed me that rsync is not enabled/allowed with their site and is being looked at as a possible update in the future. I thought that was kind of stupid to allow SSH and not rsync... I'm not sure if they gave me the correct info or not, but I've tried all that I can and am getting no results.

Thanks again for the help!
  #4 (permalink)  
Old 12-29-2007
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 708
Hi.

Possibly of some interest.

The ISP may have been talking about not running an rsync server, the daemon, rsyncd. An ISP that I once used was in the same condition.

As I recall, I compiled rsync at that ISP, and then used that local copy of rsync in my account on the ISP to communicate with my local workstation copy. Look over the rsync man page, especially at the section "CONNECTING TO AN RSYNC SERVER OVER A REMOTE SHELL PROGRAM".

I no longer have that account, so regrettably I cannot give you any more details. If you have access to the gcc compiler suite and libraries on the ISP, then you may be able to do what I had done. Of course, you'll need the rsync source as well: rsync .

This may not have been clear due to normal mental fog of elapsed time for me -- perhaps an expert will drop by and offer additional details or alternate solutions.

Best wishes ... cheers, drl
  #5 (permalink)  
Old 12-30-2007
compulsiveguile's Avatar
compulsiveguile compulsiveguile is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 3
Quote:
Originally Posted by drl View Post
Hi.

Possibly of some interest.

The ISP may have been talking about not running an rsync server, the daemon, rsyncd. An ISP that I once used was in the same condition.

As I recall, I compiled rsync at that ISP, and then used that local copy of rsync in my account on the ISP to communicate with my local workstation copy. Look over the rsync man page, especially at the section "CONNECTING TO AN RSYNC SERVER OVER A REMOTE SHELL PROGRAM".

I no longer have that account, so regrettably I cannot give you any more details. If you have access to the gcc compiler suite and libraries on the ISP, then you may be able to do what I had done. Of course, you'll need the rsync source as well: rsync .

This may not have been clear due to normal mental fog of elapsed time for me -- perhaps an expert will drop by and offer additional details or alternate solutions.

Best wishes ... cheers, drl
Thanks for the input. I most likely will need some clarification regarding some of the things you've said. I'm fairly illiterate when it comes to Unix functions, terms, etc. I'll sort it out when I get a bit more time. Any clarification that could be offered would be appreciated as well.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0