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

Aucun résumé des modifications
 
Ligne 66 : Ligne 66 :
=== 🔁 7. Redémarrer (si nécessaire) ===
=== 🔁 7. Redémarrer (si nécessaire) ===


==== Arrêter proprement toutes les VM et CT ====
En root
<syntaxhighlight lang="bash" copy>
for vmid in $(qm list | tail -n +2 | awk '{print $1}'); do qm shutdown $vmid --timeout 120; done
</syntaxhighlight>
<syntaxhighlight lang="bash" copy>
for vmid in $(pct list | tail -n +2 | awk '{print $1}'); do pct shutdown $vmid --timeout 120; done
</syntaxhighlight>
==== Vérifier qu'ils sont bien arrêtés ====
<syntaxhighlight lang="bash" copy>
qm list
</syntaxhighlight>
<syntaxhighlight lang="bash" copy>
pct list
</syntaxhighlight>
==== Puis reboot ====
<syntaxhighlight lang="bash" copy>reboot</syntaxhighlight>
<syntaxhighlight lang="bash" copy>reboot</syntaxhighlight>