|
|
rsync w/o daemon
You can rsync any two machines (as long as rsync is installed on both machines) without running a daemon on either machine or adding rsync to inetd etc.
rsync w/o daemon
How do you deal with the password stuff? I can't seem to get --password-file=FILE to work (does it have to be in some special format? I'm using a text file), or the RSYNC_PASSWORD environment variable to work either... Aside from that your post rocks! Very handy, thanks to both of you for putting this information together.
rsync w/o daemon
I copied the text below from the rsync man page,
this is the section on the different ways rsync can be used:
1. for copying from the local machine to a remote machine using a remote shell program as the trans- port (such as rsh or ssh). This is invoked when the destination path contains a single : separator. 2. for copying from a remote machine to the local machine using a remote shell program. This is invoked when the source contains a : separator. 3. for copying from a remote rsync server to the local machine. This is invoked when the source path con- tains a :: separator or a rsync:// URL. 4. for copying from the local machine to a remote rsync server. This is invoked when the destination path contains a :: separator.In my case I am using server:~/ (not server:: as in the original hint) and specifying to use ssh with the -e switch so I am using method 1. (to server) and 2. (from server). Whatever method you use you to authenticate with ssh will also apply for the rsync over ssh connection. After you enter the rsync command ssh will make a connection and prompt you for your account password if necessary. In my case I use key exchange so I can just enter the rsync command from my previous post and it will run right away. (I've got several different rsync commands stored as term files in: ~/Library/Application Support/Terminal/*.term So I can easily access them from Terminal.)
rsync w/o daemon
Would you care to write a tip on using key exchange? Sounds useful...
rsync w/o daemon
rsync w/o daemon
Ok here we go. I took your advice and tried
rsync w/o daemon
Ok I just ran:
rsync -rptvlWe ssh --delete --progress --stats ~/rsynctest.txt server:~/
And this is what I see:
rsync: building file list... rsync: 1 files to consider. rsynctest.txt 6947 100% 0.00kB/s 0:00:00 Number of files: 1 Number of files transferred: 1 Total file size: 6947 bytes Total transferred file size: 6947 bytes Literal data: 6947 bytes Matched data: 0 bytes File list size: 32 Total bytes written: 7035 Total bytes read: 36 wrote 7035 bytes read 36 bytes 744.32 bytes/sec total size is 6947 speedup is 0.98My file is fine on the server. Which leads me to believe that the output you saw was from a file with a resource fork. I see only one "100%", you had two, so I guess your file is copied and then replaced by its resource. Try creating a new text file from the CLI: touch ~/rsynctest2.txt then add some text to the file with vi/pico (or TextEdit.app) or just type: cat ~/Sites/index.html >> ~/rsynctest2.txt and run the rsync command again but with rsynctest2.txt. If it works then I guess it was a resource issue, and you'll have to use RsyncX and be careful about what you use rsync on. If the command still doesn't work with the plain text file, you might have a problem with the server (what OS is it running?) or conflicts between rsync versions etc.
rsync w/o daemon
Ok the solution was that I only had RSYNC on my Jaguar box and RSYNCX on my 10.1.5 box. Now that I have RSYNCX on both I'm fine.
rsync w/o daemon
Ok the solution was that I only had RSYNC on my Jaguar box and RSYNCX on my 10.1.5 box. Now that I have RSYNCX on both I'm fine. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|