« Proxmox backup config » : différence entre les versions

Page créée avec « = '''Backup de la configuration du host Proxmox''' = Sauvegarder '''tout ce qui permet de reconstruire rapidement le node'''. Lance : <syntaxhighlight lang="bash">sudo tar czf /root/proxmox-config-$(hostname)-$(date +%F).tar.gz \ /etc/pve \ /etc/network \ /etc/hosts \ /etc/resolv.conf \ /etc/passwd \ /etc/group \ /etc/shadow</syntaxhighlight> Ça te crée une archive compressée dans <code>/root</code>. Cette méthode est souvent recommandée pour la reprise... »
 
Ligne 5 : Ligne 5 :
Lance :
Lance :


<syntaxhighlight lang="bash">sudo tar czf /root/proxmox-config-$(hostname)-$(date +%F).tar.gz \
<syntaxhighlight lang="bash">sudo tar czf /mnt/ssd-sata/backups/proxmox/proxmox-config-$(hostname)-$(date +%F).tar.gz \
/etc/pve \
/etc/pve \
/etc/network \
/etc/network \
Ligne 13 : Ligne 13 :
/etc/group \
/etc/group \
/etc/shadow</syntaxhighlight>
/etc/shadow</syntaxhighlight>
Ça te crée une archive compressée dans <code>/root</code>.
Ça te crée une archive compressée dans <code>/mnt/ssd-sata/backups/proxmox/</code>.


Cette méthode est souvent recommandée pour la reprise après incident. ([Saturn ME][2])
Cette méthode est souvent recommandée pour la reprise après incident.