OS/2, eCS & ArcaOS - Technical > Utilities

SyncBackup & ssh-askpass

<< < (2/2)

Doug Bissett:
Don't forget that the module name is case sensitive. It must match, exactly, on both ends.


I finally got the time to get back to this and all is well.

I'll make this post in some detail to help others who might be trying something similar.


I have two machines:

    a) eCS      - my main machine.
    b) Ubuntu - a file server.

Simply put, I was trying to transfer a HUGE number of small files to the file server. FTP while great at large files, looses too much in the overhead to be practical for my present purpose.

I am testing to see if rSync is superior; so far the results are encouraging.

To obtain this on the Ubuntu side I installed rSync:

   "sudo apt-get rsync install"

Once installed I created a file name rsyncd.conf, (note the "d"), and gave it basic settings. Here it is;

      log file       = /var/log/rsyncd.log
      timeout     = 1200

      path           = media/
      comment    = root path for this connection
      uid             = ben
      read only    = false
      list             = true
      hosts allow =

That is all that I used though there are many more things that can go in there and that was all that I needed.

"[documents]" is the module name that you must include after the "::" in the parameters when using the client.
"path" is obvious; the base directory where you want the remote user to start.
"comment" This is a comment that you would wish to user see when connecting.

This too is a comment that I would like the user to see: *nix is too arcane for even Aliester Crowley to use. (Hands up those who understand that comment?) 8) In simple terms, too much time is wasted doing something simple and mundane. OS/2 does not suffer from this affliction. It has both the power of *nix and the power of the WPS. There is nothing out there even now, that is close to it... just different.

To continue...

"uid" is also obvious, it is the name of the user who wished to connect.
"read only = false" allows the remote user to write as well as read into and from the directory in the "path".
"list" allows the user to list the contents.
"hosts allow" determines what machines have permission to connect.

"Modules" refer to the rsyncd.conf file which has two classifications of sections within; "general parameters" and other sections which are called "modules". These modules define certain settings and are grouped as the user sees fit as in keeping alignment with the manpages on the subject; you can have more than one "module" per rsyncd.conf

Now, I'm not going to go too deeply into this but, here is the commandline parameters that I used on the eCS machine to connect to my Ubuntu File Server and to enable me to transfer the files.

After opening a cmd in my rSync/bin directory, I first used the "set" command;

SET RSYNC_PASSWORD=*place your password here*

Then I issued the following command;

rsync --progress --log-file=logs/RsyncTest.log  -avvz h:/*source directory*/ ben@*destination directory*

Obviously, I will refine the whole process and I will [encapsulate] it all within a *.cmd file(s) of my own making, thus easing the process and allowing me to gracefully forget the whole thing, so that next time I can enjoy doing it all again! ;) Define the word "masochist".

I hope that helps someone.

P.S. A "thank-you" to Doug for his contribution, some of which I included.

P.P.S. Pardon me if some of that wasn't clear; all mistakes within are my own.

Doug Bissett:

--- Quote ---      gid             = *insert your password here*

--- End quote ---

According to what I read, "gid" stands for "Group ID". That would seem to have nothing to do with passwords. In fact, I suspect that it is probably ignored, since it doesn't seem to matter what I put in that setting.

The RSync docs indicate that RSync (client) gets the password from the environment variable, which can be set just before opening RSync, or it could be set globally in CONFIG.SYS (with the associated security concerns). It seems that Linux (server) associates the uid (User ID) with the password that is assigned to that user. In eCS, or OS/2, it seems to always use "root" for both uid, and gid, which makes sense because eCS doesn't have the user ID association to passwords support.


I have modified my last message to add the missing elements, (as previously stated I would), and I have removed the useless "gid" references.

I just have to throw this in here as a supplement and conclusion to this thread.

rSync works extremely well. It is a nuisance to setup, but once configured, runs fast... very fast! and incredibly smoothly.

It works beyond my expectations.

It is exactly what I needed and fills a position by itself.

Just saying that to let the readers know that it is definitely worth the effort.

I have many rSync configurations now, running via chron, (actually, DragText), on many different machines... all running silently and without attention while I'm sleeping soundly! 8)



[0] Message Index

[*] Previous page

Go to full version