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
DUPLOAD(1)                                                        Debian Project                                                        DUPLOAD(1)

NAME
dupload - utility to upload Debian packages SYNOPSIS
dupload [options] [changes_file | dir] ... DESCRIPTION
dupload is a tool that enables Debian developers to easily upload their packages to the Debian archive. At least for chiark the upload procedure is somewhat error prone (upload to Incoming/, move it to queue/). dupload checks each non-option argument to find readable files or directories. It parses the files as .changes files, or tries to find such files in the given directories. dupload will warn if the name of the file doesn't end with ".changes". Further processing is done chdir'ed into the directories of the changes files. dupload tests the available checksums and size for each file listed in the .changes file, and fails if it finds a mismatch. If all this goes well, dupload checks if there is an .upload file with the basename of the .changes file. If the file to be uploaded is recorded to have already been uploaded to the specified host, it is skipped. dupload will stop and verify if it sees you try to upload a package with a non-US Section field to a host that is neither non-us.debian.org, security.debian.org nor has the "nonus" option set to 1. After the list of files to upload is finished, dupload tries to connect to the server and upload. Each successfully uploaded file is recorded in the .upload log file. If all files of a package are processed, the .changes file is mailed to the announcement address specified in the configuration file. If files with package.announce, package_UPSTREAMVER.announce, or package_UPSTREAMVER-DEBIANREV.announce exist, these files get prepended to the announcement. UPSTREAMVER and DEBIANREV are to be replaced with actual version numbers. For example, if your package is called foobar, has upstream version 3.14, and Debian revision 2: If you only want the announcement to be made with only ONE upload, you name it foobar_3.14-2.announce. If you want it to be made with every upload of a particular upstream version, name it foobar_3.14.announce. If you want it made with every upload of a given package, name it foobar.announce. Please note: Some mail readers (like elm w/ PGP extensions) don't show mail contents outside of the signed part of a message. Login and password If no login (username) is defined in the configuration file, "anonymous" is used. The password is derived from your login name and your hostname, which is common for anonymous FTP logins. For anonymous logins only, you can provide the "password" in the configuration file. For logins other than "anonymous", you're asked for the password. For security reasons there's no way to supply it via the commandline or the environment. FTP / scp / rsync The default transfer method is FTP. Alternative methods are scp/SSH and rsync/SSH. For scp and rsync, the default login is taken from your local user name. The scp/SSH method only works properly if no password is required (see ssh(1)). When you use scp, it is recommended to set the "method" keyword to "scpb", which will transfer all files in a batch. If you are using an upload queue, use FTP because it's fast. If you are using an authenticated host, always use scp or rsync via SSH, because FTP transmits the password in clear text. OPTIONS
-d --debug [level] Enable more verbose output from the FTP module. -f --force Upload regardless of the transfers logged as already completed. -k --keep Keep going, skipping packages whose checksums don't match. -c --configfile Read the file ./dupload.conf (if it exists). Warning: this is a security risk if you are in a directory where other people can write. That's why it is not the default (unlike the previous versions). --no Dry run, no files are changed, no upload is attempted, only tell what we would do. --nomail Supress announcement for this run. You can send it later by just calling dupload again w/o this option. Note that this option is by default implied for all hosts with the "dinstall_runs" option set to 1. --mailonly Acts as if --no has been specified and but sends the announcements, unconditionally. --noarchive Adds a "X-No-Archive: yes" header so that the announcement will not be archived. You can use the per-host "archive" option in the configuration file. -p --print Print the "database" as read from the config files and exit. If a host is specified via option --to, only this host's entry is displayed. -q --quiet Be quiet, i.e. supress normal output. -t --to nickname optional Upload to nickname'd host. nickname is the key for doing lookups in the config file. You can use the "default_host" configuration option to specify a host without --to. -V --Version Prints version and exits. FILES
Configuration The configuration files are searched as follows (and read in this order, overriding each other): /etc/dupload.conf ~/.dupload.conf Other Various Debian package files are used by dupload: .dsc, .changes, .deb, .orig.tar.gz, .diff.gz dupload itself writes the log file package_version-debian.upload, and the additional announcement files package.announce, package_upstreamver.announce, and package_upstreamver-debianrev.announce. Announcement addresses By default, the announcement addresses are unset because dinstall sends mails instead. BUGS
dupload is tested on Debian systems only. It shouldn't require too much effort to make it run under others systems, though, it's written in Perl. AUTHOR
/COPYRIGHT Copyright 1996 Heiko Schlittermann, 1999 Stephane Bortzmeyer dupload is free software; see the GNU General Public Licence version 2 or later for copying conditions. There is no warranty. SEE ALSO
dupload.conf(5) dupload 2.7.0 February 2011 DUPLOAD(1)
All times are GMT -4. The time now is 04:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy