Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Problems using rsync in Leopard with SSH... seeking solution/alternative Post 302148127 by compulsiveguile on Friday 30th of November 2007 12:57:49 AM
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!!!
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
rsync_selinux(8)					rsync Selinux Policy documentation					  rsync_selinux(8)

NAME
rsync_selinux - Security Enhanced Linux Policy for the rsync daemon DESCRIPTION
Security-Enhanced Linux secures the rsync server via flexible mandatory access control. FILE_CONTEXTS SELinux requires files to have an extended attribute to define the file type. Policy governs the access daemons have to these files. If you want to share files using the rsync daemon, you must label the files and directories public_content_t. So if you created a special directory /var/rsync, you would need to label the directory with the chcon tool. chcon -t public_content_t /var/rsync To make this change permanent (survive a relabel), use the semanage command to add the change to file context configuration: semanage fcontext -a -t public_content_t "/var/rsync(/.*)?" This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local: /var/rsync(/.*)? system_u:object_r:publix_content_t:s0 Run the restorecon command to apply the changes: restorecon -R -v /var/rsync/ SHARING FILES
If you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and pub- lic_content_rw_t. These context allow any of the above domains to read the content. If you want a particular domain to write to the pub- lic_content_rw_t domain, you must set the appropriate boolean. allow_DOMAIN_anon_write. So for rsync you would execute: setsebool -P allow_rsync_anon_write=1 BOOLEANS
system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>. SEE ALSO
selinux(8), rsync(1), chcon(1), setsebool(8), semanage(8) dwalsh@redhat.com 17 Jan 2005 rsync_selinux(8)
All times are GMT -4. The time now is 03:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy