The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: Rsync password --password-file format
Author: Geoff 
Date:   03-06-03 06:34

Well, the file -is- plain text and -is- a single line
ie echo password > whatever-file-you want

Nevermind, I've skipped on ssh for now and am just using the rsync protocol in the daily shell script. It seems to work ok with that, without using the --password-file, and by setting the password as an environment variable (Yes, it clears the environment var directly after use, though I still know this is not as secure as it could be). Seems to work ok. I've also fixed up another problem I was havng where rsync would drop out frequently, and throw a time out error with a relatively generous time out. using the bwlimit parameter and allowing for a few kbps fixed it right up. Probably something to do with the slow response of some sort of ack in one direction or the other.

Basically on a 512k/128k ADSL connection, it would of been sending out at about 12-13k/s max. Restricting this to 9k/s allowing some k's left for other services (and perhaps something this protocol uses to acknowledge transfer? I'm not sure how it works exactly) and got rid of any time out issues that occured.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Rsync password --password-file format   new
Geoff 02-06-03 08:54 
 Re: Rsync password --password-file format   new
Dan Langille 02-06-03 11:36 
 Re: Rsync password --password-file format   new
Geoff 03-06-03 06:34 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum