Project

General

Profile

Tâche #30074

Scénario #29990: Les scripts de sauvegarde/restauration Sphynx sont susceptibles d'écraser les dicos avec des anciennes versions

Sauvegarde/restauration Sphynx

Added by Fabrice Barconnière over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Start date:
04/25/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Ne sauvegarder/restaurer que /usr/share/eole/creole/dicos/local, pas le répertoire complet /usr/share/eole/creole/dicos

Associated revisions

Revision 65c7263f (diff)
Added by Fabrice Barconnière over 3 years ago

Save/Restore only local dictionnaries

ref #30074

History

#1 Updated by Fabrice Barconnière over 3 years ago

  • Description updated (diff)

#2 Updated by Fabrice Barconnière over 3 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Fabrice Barconnière over 3 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

Si vous voulez tester :

root@sphynx:~# echo "avant svg" > /usr/share/eole/creole/dicos/toto # création, avant la sauvegarde d'un faux dico nommé toto contenant "avant svg" 
root@sphynx:~# touch /usr/share/eole/creole/dicos/local/titi # création d'un faux dico local nommé titi
root@sphynx:~# sauvegarde.sh # lancement d'une sauvegarde
root@sphynx:~# echo "après svg" > /usr/share/eole/creole/dicos/toto # modification, après la sauvegarde du faux dico toto avec le contenu "après svg" 
root@sphynx:~# rm /usr/share/eole/creole/dicos/local/titi # suppression du dictionnaire local titi
root@sphynx:~# restauration.sh # restauration de la sauvegarde précédemment effectuée avec base ARV et conf strongSwan
root@sphynx:~# ls /usr/share/eole/creole/dicos/local/titi # vérification que le dico local est bien restauré
root@sphynx:~# cat /usr/share/eole/creole/dicos/toto # vérification que le dico toto après sauvegarde n'est pas modifié -> "après svg" 

#4 Updated by Joël Cuissinat over 3 years ago

Corrigé pour EOLE >= 2.7.1

~/git/conf-sphynx$ git branch -r --contains 65c7263f  
  origin/2.7.1/master
  origin/2.7.2/master
  origin/HEAD -> origin/master
  origin/dist/eole/2.7.1/master
  origin/dist/eole/2.7.2/master
  origin/dist/eole/2.8.0/master
  origin/master

#5 Updated by Joël Cuissinat over 3 years ago

Testé sur aca.sphynx-2.7.1.2-instance-default.

En complément :

root@sphynx:~# tar -xzf /var/lib/sphynx_backups/11-05-2020.tar.gz 
root@sphynx:~# tar tf 11-05-2020/conf_eole.tar | grep dicos
usr/share/eole/creole/dicos/local/
usr/share/eole/creole/dicos/local/XX_dico_exemple.xml.sample
usr/share/eole/creole/dicos/local/titi

#6 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF