Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


21382 posts

Uber Geek
+1 received by user: 4333

Trusted
Subscriber

Topic # 89988 13-Sep-2011 00:45
Send private message

Trying to set this up as a scheduled task on my machine so I actually get stuff downloaded in the offpeak time now that staying up till 1 or 2am isnt really viable to start it.

Anyway, everything online seems to blab on about it not being a good idea to store passwords etc and to make keypairs etc which I dont want to do and probably cant do, I just want to put the password on the command line like I can do with FTP, except that it doesnt support syncing differences which is important when there are incomplete things on the server that need to finish off later on.

The question is, how? I found mention of a RSYNC_PASSWORD= variable which does nothing.

I thought i would be able to stick it in a txt file and just put < password.txt on the command line, but again, didnt work, my .cmd file just stops at a password prompt.

--password-file also doesnt work, telling me "The --password-file option may only be used when accessing an rsync daemon." which is what I thought I was trying to do.

Any solutions other than resorting to some ghetto macrorecorder type solution?




Richard rich.ms

Create new topic


21382 posts

Uber Geek
+1 received by user: 4333

Trusted
Subscriber

  Reply # 520270 13-Sep-2011 01:17
Send private message

Nevermind, found another tutorial on doing the whole ssh key thing that actually worked, and it seems to be happy now. Still a lot more work than it should be.




Richard rich.ms

864 posts

Ultimate Geek
+1 received by user: 53

Subscriber

  Reply # 520962 14-Sep-2011 14:00
Send private message

There is an rsync that doesnt need to run inside cygwin and can work with a ssh server but I've had the odd issue in the past (mainly with unicode files)

DeltaCopy on windows to a *nix box with regular rsync works well.

Also this seems interesting http://www.yinter.net/ I havent tried it yet though.



21382 posts

Uber Geek
+1 received by user: 4333

Trusted
Subscriber

  Reply # 520992 14-Sep-2011 15:05
Send private message

It worked once I found that I had 2 cygwin home folders, one from a really old install of windows and thats where I was copying the cert stuff from, which was old and wrong.. Still cant get the stopping side of it working, but at least thats not a huge deal if it runs on after 7am




Richard rich.ms

91 posts

Master Geek


  Reply # 521556 15-Sep-2011 16:11
Send private message

richms: It worked once I found that I had 2 cygwin home folders, one from a really old install of windows and thats where I was copying the cert stuff from, which was old and wrong.. Still cant get the stopping side of it working, but at least thats not a huge deal if it runs on after 7am


If you use DeltaCopy (Windows RSYNC Client or Server) then password (windows account) and scheduling built in.

I use to rsync Windows files etc to my home NAS. Makes life easier than command line.

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.