Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: unison configuratie  (gelezen 751 keer)

klaasth

  • Gast
unison configuratie
« Gepost op: 2008/05/29, 20:41:15 »
Hoi

Mijn file zit er momenteel zo uit:
root: /home/klaas/test/
root: /home/media/klaas/test

Ik kan mooi synchroniseren, enkel heb ik de vraag welke parameter ik moet toeveogen om automatisch te synchroniseren om het half uur bijvoorbeeld. Ik heb me al rot gezocht op internet maar ik vind enkel config files, met voor ignore statements.
Kan iemand mij helpen?

Hartelijk dank!

unison configuratie
« Reactie #1 Gepost op: 2008/05/29, 22:27:21 »
Is there a way to get Unison not to prompt me for a password every time I run it (e.g., so that I can run it every half hour from a shell script)?

It's actually ssh that's asking for the password. If you're running the Unison client on a Unix system, you should check out the 'ssh-agent' facility in ssh. If you do
ssh-agent bash

(or ssh-agent startx, when you first log in) it will start you a shell (or an X Windows session) in which all processes and sub-processes are part of the same ssh-authorization group. If, inside any shell belonging to this authorization group, you run the ssh-add program, it will prompt you once for a password and then remember it for the duration of the bash session. You can then use Unison over ssh---or even run it repeatedly from a shell script---without giving your password again.

It may also be possible to configure ssh so that it does not require any password: just enter an empty password when you create a pair of keys. If you think it is safe enough to keep your private key unencrypted on your client machine, this solution should work even under Windows.
Wat naar ik begrijp dien je een apart shellscript nodig te hebben wat Unison opstart en Unison zo in te stellen dat je het niet met root rechten hoeft te openen.
Ik denk dat er op het forum genoeg mensen zijn die zo'n scriptje kunnen schrijven.
Daar kan ik je helaas niet mee helpen.

Met vriendelijke groet,

Gijs
In der Beschränkung zeigt sich der Meister.

klaasth

  • Gast
unison configuratie
« Reactie #2 Gepost op: 2008/05/29, 22:35:14 »
Bedankt voor de tip!

klaasth

  • Gast
unison configuratie
« Reactie #3 Gepost op: 2008/05/29, 22:59:15 »
Is het mogelijk om unison te laten uitvoeren met Crontabs?

unison configuratie
« Reactie #4 Gepost op: 2008/05/29, 23:26:19 »
Ik zou het echt niet weten. Ik gebruik geen scripts omdat ik mij daar niet in verdiept heb. Als je op het forum zoekt op contrab krij je wel het een en ander te zien zoals bijv deze http://forum.ubuntu-nl.org/topic/17871 en man crontab geeft ook wat informatie. Als je er niet uitkomt maak dan een nieuw topic aan over crontab er zullen genoeg mensen zijn die je kunnen helpen.

Met vriendelijke groet,

Gijs
In der Beschränkung zeigt sich der Meister.

Offline vanadium

  • Lid
unison configuratie
« Reactie #5 Gepost op: 2008/05/30, 13:52:21 »
unison is in essentie een commandolijnprogramma. Je kan het dus zeker in crontabs opnemen.