synchronising wims servers

Ce sujet a 10 réponses, 3 participants et a été mis à jour par  Olivier, il y a 1 an et 7 mois.

  • Auteur
    Messages
  • #3242

    jm.evers
    Participant

    Hi,
    could anyone explain me in simple terms and example config files how to synchronise a wims (backup) server « B » with a wims server « A » ?
    The backup server « B » should be a fully functional server
    ( e.g.containing all student/teacher accounts,scores,worksheets,exams etc etc from server « A »)

    thanks in advance,
    joke

  • #3244

    Julien
    Participant
  • #3246

    jm.evers
    Participant

    I’ve not been very clear…
    What I want is to make use of the ‘adm/raw’ module to synchronise wims-servers A –> B
    There are -in my view very cryptic- example config files in the subdir ‘log/classes/.connexions’…but I can’t seem to get it working
    (and I’ve never could…)

    I was wondering if anyone could provide me with a set of fool-proof example config files 🙂

    joke

  • #3248

    Olivier
    Admin bbPress

    Hello Joke,
    I don’t think the adm/raw module is intended to synchronise 2 WIMS servers.

    I think the best way to do what you want is using « cron » and « rsync » to synchronise every day the backup server with data from server « A ».

    a command like this should be useful :

    #! /bin/sh
    #
    rsync -avz -e ssh wims@SERVERA_IP:/home/wims/ /home/wims

    Olivier Bado - Université Nice Sophia Antipolis

  • #3250

    jm.evers
    Participant

    Thanks for your answer, but « ssh » is out of the picture on the leiden mirror…for the time being.

    I’ve always used cron to generate backup of student-accounts to synchronise « leiden –> school-intranet-server » on a daily basis.(these cron scripts can not be changed from the adm/config module; so there is no way to include more data…and I don’t like to do a manual backup of all 77 classes individually…)

    I’m now installing a new internet server, so I need to get all the user data from « Leiden –> new-server » on a daily basis.(for the rest of this school season)
    Needless to say that on my new internet server « ssh » is possible.

    So I’m basically looking for config-scripts that actually could work (if copied to the correct server)

    joke

    • Cette réponse a été modifiée le il y a 1 an et 7 mois par  jm.evers. Raison: typo
  • #3252

    Olivier
    Admin bbPress

    If you can’t use SSH, i have no other idea of what you can use…

    Maybe you can look at how you can use rsync without SSH ?

    http://stackoverflow.com/questions/8575345/rsync-without-ssh-access

    • Cette réponse a été modifiée le il y a 1 an et 7 mois par  Olivier.

    Olivier Bado - Université Nice Sophia Antipolis

  • #3254

    jm.evers
    Participant

    Hmmm,

    I thought it was the sole purpose of the wims « adm/raw module » to do just that…
    the connection/exchange between 2 wims-servers (and even wims -> moodle etc etc)

    But maybe I’m just plain wrong.
    cheers,
    joke

    • Cette réponse a été modifiée le il y a 1 an et 7 mois par  jm.evers. Raison: typo
  • #3256

    Olivier
    Admin bbPress

    Adm/raw module has initially been developed to let « another server » get informations from WIMS.
    Theoretically, a Wims server could use it to do so, but no one has ever made a module to GET these informations. The adm/raw module is only here to respond to external stimulus.
    And as far as I know, some plugins have been developed in « Jalon » and « Moodle » LMS to discuss with it.

    • Cette réponse a été modifiée le il y a 1 an et 7 mois par  Olivier.

    Olivier Bado - Université Nice Sophia Antipolis

  • #3258

    jm.evers
    Participant

    Adm/raw module has initially been developed to let « another server » get informations from WIMS.

    I always thought a wims-admin -via the browser interface / adm modules- could connect to another server to ‘mirror’ peaces of it -using the adm/raw module- if the correct config-files & passwords were present in ~/log/classes/.connections

    I never (..) could get this to work…so I guessed my config-files were not ok…and I gave up trying ever since.
    Using ssh/cron/shell-scripts/wget was much easier…

    So I just have to wait until the ssh-stuf is fixed.

    thanks for your support!
    joke

  • #3264

    jm.evers
    Participant

    well, just for the record…using ‘upload material to the server’ of some modified ‘adm proc files’ , I was able to adapt stuff and get my daily selective backups working…

    joke

    • Cette réponse a été modifiée le il y a 1 an et 7 mois par  jm.evers.
    • Cette réponse a été modifiée le il y a 1 an et 7 mois par  jm.evers.
  • #3267

    Olivier
    Admin bbPress

    Good to know 😉

    Olivier Bado - Université Nice Sophia Antipolis

Vous devez être connecté pour répondre à ce sujet.