synchronising wims servers

Vous lisez 10 fils de discussion
  • Auteur
    Messages
    • #3242
      jm.evers
      Participant
      Up
      0
      Down
      ::

      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
      Modérateur
    • #3246
      jm.evers
      Participant
      Up
      0
      Down
      ::

      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
      Avatar photoOlivier
      Maître des clés
      Up
      0
      Down
      ::

      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-Faustin / Université Côte d’Azur

    • #3250
      jm.evers
      Participant
      Up
      0
      Down
      ::

      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 8 années et 1 mois par jm.evers. Raison: typo
    • #3252
      Avatar photoOlivier
      Maître des clés
      Up
      0
      Down
      ::

      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 8 années et 1 mois par Avatar photoOlivier.

      Olivier Bado-Faustin / Université Côte d’Azur

    • #3254
      jm.evers
      Participant
      Up
      0
      Down
      ::

      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 8 années et 1 mois par jm.evers. Raison: typo
    • #3256
      Avatar photoOlivier
      Maître des clés
      Up
      0
      Down
      ::

      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 8 années et 1 mois par Avatar photoOlivier.

      Olivier Bado-Faustin / Université Côte d’Azur

    • #3258
      jm.evers
      Participant
      Up
      0
      Down
      ::

      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
      Up
      0
      Down
      ::

      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 8 années et 1 mois par jm.evers.
      • Cette réponse a été modifiée le il y a 8 années et 1 mois par jm.evers.
    • #3267
      Avatar photoOlivier
      Maître des clés
      Up
      0
      Down
      ::

      Good to know 😉

      Olivier Bado-Faustin / Université Côte d’Azur

Vous lisez 10 fils de discussion
  • Vous devez être connecté pour répondre à ce sujet.