Problems using rsync in Leopard with SSH... seeking solution/alternative


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Problems using rsync in Leopard with SSH... seeking solution/alternative
# 1  
Old 11-30-2007
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 Smilie

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  
Old 12-29-2007
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  
Old 12-29-2007
Quote:
Originally Posted by mistermorris
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  
Old 12-29-2007
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  
Old 12-30-2007
Quote:
Originally Posted by drl
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Seeking suggestion of small storage solution

Hi, We have 4 T5220 servers, which are currently connected to Hitachi SAN storage solution. This is old SAN, so we are going to decommission it. At this location, there is no other SAN and no other servers, which requires SAN solution. So we are thinking of a small and cheap storage solution,... (3 Replies)
Discussion started by: solaris_1977
3 Replies

2. Shell Programming and Scripting

Seeking Alternative for diff in hp

Hi , I have to use HP-unix OS to get difference between 2 files.while i tried a piece of code in other OS(linux/unix) as below, it worked fine & the output is desired one. diff --suppress-common-lines -y file_1 file_2 >d.txt The same doesn't works in HP -unix. Any help shall be... (6 Replies)
Discussion started by: vinil
6 Replies

3. Homework & Coursework Questions

Alternative solution to nested loops in shell programming

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Hi, The problem statement is: I am trying to read line by line from a flat file by using a while loop. The... (9 Replies)
Discussion started by: Sandeep Pattnai
9 Replies

4. Shell Programming and Scripting

Maxdepth command not working in AIX.Need alternative solution for this command

Hi All, I am trying to select 30 days older files under current directory ,but not from subdirectory using below command. find <Dir> -type f -mtime + 30 This command selecting all the files from current directory and also from sub directory . I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies

5. UNIX for Dummies Questions & Answers

Backup solution using rsync

Hello All, I am looking at a fast way to script some backups. I am looking at using rsync to do the leg work. I am having a hard time conceiving a script though. I have a tree with subfolders within subfolders. I was looking at the /xd option to parse the tree. Directory of k:\ ... (4 Replies)
Discussion started by: jvamos
4 Replies

6. Shell Programming and Scripting

Rsync script and backup problems.

Hello everybody I'm triing since few days to do this. So sorry if my question looks stupide, but i've tried. I have to get picture from a folder (who is updated automaticly and with subfolder) with theirs extensions (i'm ok on that) and this files have to me copied in a folder where a website... (7 Replies)
Discussion started by: boytruc
7 Replies

7. UNIX for Dummies Questions & Answers

Problems using rsync with cron

Hi, I've created a cron job for a script with a rsync command in it. The script is named pull.sh and contains the following line : What it is supposed to do is pull backup files from the production server of my company to my local server. It should also generate the log file (output.log)... (1 Reply)
Discussion started by: anaigini45
1 Replies

8. UNIX for Dummies Questions & Answers

Rsync problems

Hi Im trying to syncronise 4 webserver mirrors, using the rsync command. /www/html is the html documents directory. i am using export RSYNC_RSH="/usr/local/bin/ssh -l $REMOTE_USER" rsyn -va /www/html remotehost:/www/html when this is run, it copies the html file over to the remote... (3 Replies)
Discussion started by: thangorn
3 Replies
Login or Register to Ask a Question