Project

General

Profile

Tâche #25081

Scénario #25579: ScribeAD : Finaliser l'implémentation de la sauvegarde de l'Active Directory dans Bareos

Copier et adapter la configuration de la sauvegarde de AD-DC vers AD

Added by Emmanuel GARETTE about 3 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/19/2018
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Copier les fichiers/schedules/... depuis eole-ad-dc dans eole-ad et adapter au besoin de eole-ad.

Le script schedule/scripts/samba_backup reste pour l'instant dans eole-ad-dc

Associated revisions

Revision e90bb4b3 (diff)
Added by Emmanuel GARETTE about 3 years ago

Sauvegarder les données de l'AD (ref #25081)

Revision 37a0334a (diff)
Added by Daniel Dehennin about 3 years ago

Revert "Sauvegarder les données de l'AD (ref #25081)"

Le script de schedule n’est pas présent.

This reverts commit e90bb4b3cb8c019d538e6fd837113d61cc6ff912.

Ref: #25081

Revision fb53370b (diff)
Added by Joël Cuissinat over 2 years ago

Add eole-schedule AD export on ScribeAD

  • bin/addc_backup : script to launch AD backup in container
  • schedule/scripts/addc : script to call launcher with eole-schedule
  • extra/schedule/01_addc.xml : backup script registration

Ref: #25081

Revision ad9e353a (diff)
Added by Joël Cuissinat over 2 years ago

Create package eole-ad-scripts to install specific scripts in container

  • debian/control : declare new package and add dependancy
  • *.install : manage files dispatching between packages

Ref: #25081

Revision f762d452 (diff)
Added by Joël Cuissinat over 2 years ago

Add AD files to Bareos backup

Ref: #25081

Revision 261c8f18 (diff)
Added by Joël Cuissinat over 2 years ago

Add bareos config file in packages

Ref: #25081

Revision 243c0093 (diff)
Added by Joël Cuissinat over 2 years ago

Add local homes and profiles to backup

Ref: #25081

History

#1 Updated by Emmanuel GARETTE about 3 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Scrum Master about 3 years ago

  • Status changed from En cours to Résolu

#3 Updated by Daniel Dehennin about 3 years ago

  • Status changed from Résolu to En cours

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

  • Parent task changed from #24947 to #25579

#5 Updated by Scrum Master almost 3 years ago

  • Status changed from En cours to Nouveau

#6 Updated by Scrum Master almost 3 years ago

  • Assigned To deleted (Emmanuel GARETTE)

#7 Updated by Scrum Master over 2 years ago

  • Status changed from Nouveau to En cours

#8 Updated by Scrum Master over 2 years ago

  • Assigned To set to Joël Cuissinat

#9 Updated by Joël Cuissinat over 2 years ago

Proposition :
  • ajouter un script dans le conteneur qui appelle l'équivalent des commandes présentes dans le script schedule du Seth
  • ajouter un schedule qui appelle ce script avec lxc-attach -n addc --
root@addc:~# . /etc/eole/samba4-vars.conf
root@addc:~# WHERE=/home/backup/samba
root@addc:~# USER="$AD_ADMIN@"$(echo $AD_REALM | tr a-z A-Z)
root@addc:~# KEYFILE="/tmp/backup.keytab" 
root@addc:~# samba-tool domain exportkeytab "$KEYFILE" --principal="$USER" 2> /dev/null
root@addc:~# kinit "$USER" -k -t "$KEYFILE" 
root@addc:~# mkdir -p "${WHERE}" 
root@addc:~# /usr/share/eole/sbin/samba_backup "${WHERE}/samba_backup.report" "${WHERE}" "${AD_HOST_NAME}.${AD_REALM}" > /dev/null 2> /dev/null
root@addc:~# kdestroy
root@addc:~# rm -f "$KEYFILE" 

#10 Updated by Joël Cuissinat over 2 years ago

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

#11 Updated by Gilles Grandgérard over 2 years ago

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

Also available in: Atom PDF