(sauvegarde ou création de nouveau questionnaire)
Si on veut éviter de créer de A à Z un nouveau questionnaire, il est possible de faire une copie d'un questionnaire, à partir de l'administration limesurvey s'il est disponible ou à partir d'un backup (export)
Fini!
pas trouvé de réponse simple dans la doc ou le wiki
solution hand-made:
Réfléchir à la question de l'identifiant, cf. infra CAUTION: dans l'idéal il faudrait exporter avec un identifiant discriminant, solution possible: passer par MySQL pour faire des identifiants de questionnaires uniques mais génériques
SELECT `sid` FROM `lime_surveys` ORDER BY `sid` ASC
exporter questionnaire en csv, eg. limesurvey_survey_19355.csv
en shell,
//CAUTION: IF "19355[identifiantLimesurvey]" IN FILE POSSIBLE CONFUSION!!! little grep before!! replace "19355[identifiantLimesurvey]" "xxxx[nvlIdentifiantArbitraire]" -- limesurvey_survey_*.csv
retourner dans limesurvey, faire créer / importer :
If you have previously exported a survey, you can import it from the “New Survey” screen. Click on the browse button to choose the SQL/CSV file, and then click on the button.
ou en ligne de commande: (pratique si on en a beaucoup) - jamais essayé!
http://docs.limesurvey.org/tiki-index.php?page=Importing+a+Survey
Import using the commandline utility
Since version 1.50 it is possible to import surveys from the command line (or shell). To use this functionality you have to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.
This functionality is useful when you have timeout problems with the web version that could happen when you have very long surveys to import.
To use it, in the shell go to the limesurvey/admin folder and execute:
php cmdline_importsurvey <File to import> [<user> <password>]
* <File to import> has to be one of the described above
* <user> has to be a user with the right to create surveys
* <password> the password for the user
*<user> and <password> are only required if the control access is active
If you need to see the parameters you can execute:
php cmdline_importsurvey -h