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.




20882 posts

Uber Geek
+1 received by user: 4094

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


20882 posts

Uber Geek
+1 received by user: 4094

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

846 posts

Ultimate Geek
+1 received by user: 47

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.

 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software


20882 posts

Uber Geek
+1 received by user: 4094

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:





News »

Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25


New Zealand Adopts International Open Data Charter
Posted 3-Mar-2018 12:48


Shipments tumble as NZ phone upgrades slow
Posted 2-Mar-2018 11:48



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.