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:
Make change to website
Export to a local folder
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:
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!!!
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.
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
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.
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.
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)
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)
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)
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)
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)
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)
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)
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)