{"id":363,"date":"2024-10-08T18:01:52","date_gmt":"2024-10-08T16:01:52","guid":{"rendered":"https:\/\/mathieu-ghost.ovh\/?p=363"},"modified":"2025-01-05T15:21:30","modified_gmt":"2025-01-05T14:21:30","slug":"proxmox-restaurer-une-vm-conteneur-sauvegarde-dans-un-nas","status":"publish","type":"post","link":"https:\/\/mathieu-ghost.ovh\/index.php\/2024\/10\/08\/proxmox-restaurer-une-vm-conteneur-sauvegarde-dans-un-nas\/","title":{"rendered":"Proxmox : restaurer une VM\/Conteneur sauvegard\u00e9 dans un NAS."},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Cr\u00e9ation du point de montage vers le NAS<\/h2>\n\n\n\n<p>Monter un point de montage en direction du partage o\u00f9 ce trouve les sauvegardes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount -t cifs <em><strong>&lt;chemin_vers_le_partage&gt;<\/strong><\/em> <em><strong>&lt;chemin_vers_le_point_de_montage&gt;<\/strong><\/em> -o username=<em><strong>&lt;utiliasteur&gt;<\/strong><\/em>,password=<em><strong>&lt;password&gt;<\/strong><\/em><\/code><\/pre>\n\n\n\n<p>exemple : <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount -t cifs \"<em><strong>\/\/192.168.0.55\/hdd1_syn<\/strong><\/em>\" \"<em><strong>\/mn<\/strong><\/em><strong><em>t\/<\/em>backup-syn\"<\/strong> -o username=<em>\"<strong>utilisateur1<\/strong><\/em>\",password=<em><strong>\"123456<\/strong><\/em>\"<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Restauration d&rsquo;une machine virtuelle<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>qmrestore --storage <strong><em>&lt;id_du_stockage><\/em><\/strong> <strong><em>&lt;chemin_vers_backup> &lt;id_de_la_nouvelle_VM><\/em><\/strong><\/code><\/pre>\n\n\n\n<p>exemple : <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qmrestore --storage <strong><em>local-lvm \"\/mnt\/backup-syn\/dump\/vzdump-qemu-107-2024_10_07-11_26_44.vma.zst\" 600<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>La VM \u00e0 bien \u00e9t\u00e9 restaur\u00e9e :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"173\" height=\"23\" src=\"https:\/\/mathieu-ghost.ovh\/wp-content\/uploads\/2024\/10\/image-4.png\" alt=\"\" class=\"wp-image-367\" style=\"width:203px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"293\" src=\"https:\/\/mathieu-ghost.ovh\/wp-content\/uploads\/2024\/10\/Clipboard_10-08-2024_01-1.jpg\" alt=\"\" class=\"wp-image-368\" style=\"width:643px;height:auto\" srcset=\"https:\/\/mathieu-ghost.ovh\/wp-content\/uploads\/2024\/10\/Clipboard_10-08-2024_01-1.jpg 760w, https:\/\/mathieu-ghost.ovh\/wp-content\/uploads\/2024\/10\/Clipboard_10-08-2024_01-1-300x116.jpg 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Restauration d&rsquo;un conteneur<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>pct restore --storage <em><strong>&lt;id_du_stockage><\/strong> <strong>&lt;id_du<\/strong><\/em><strong><em>_<\/em><\/strong><strong><em>conteneur> &lt;chemin_vers_le_backup><\/em><\/strong><\/code><\/pre>\n\n\n\n<p>exemple : <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pct restore --storage <strong><em>local-lvm<\/em><\/strong> <strong><em>601<\/em><\/strong> \"<strong><em>\/mnt\/backup-syn\/dump\/vzdump-lxc-110-2024_10_07-10_56_14.tar.zst<\/em><\/strong>\"<\/code><\/pre>\n\n\n\n<p>Le conteneur \u00e0 bien \u00e9t\u00e9 restaur\u00e9 : <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"121\" height=\"24\" src=\"https:\/\/mathieu-ghost.ovh\/wp-content\/uploads\/2024\/10\/image-5.png\" alt=\"\" class=\"wp-image-369\" style=\"width:156px;height:auto\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"172\" src=\"https:\/\/mathieu-ghost.ovh\/wp-content\/uploads\/2024\/10\/image-6.png\" alt=\"\" class=\"wp-image-370\" style=\"width:550px;height:auto\" srcset=\"https:\/\/mathieu-ghost.ovh\/wp-content\/uploads\/2024\/10\/image-6.png 526w, https:\/\/mathieu-ghost.ovh\/wp-content\/uploads\/2024\/10\/image-6-300x98.png 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Cr\u00e9ation du point de montage vers le NAS Monter un point de montage en direction du partage o\u00f9 ce trouve les sauvegardes. exemple : Restauration d&rsquo;une machine virtuelle exemple : La VM \u00e0 bien \u00e9t\u00e9 restaur\u00e9e : Restauration d&rsquo;un conteneur exemple : Le conteneur \u00e0 bien \u00e9t\u00e9 restaur\u00e9 :<\/p>\n","protected":false},"author":2,"featured_media":373,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-363","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informatique"],"_links":{"self":[{"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/posts\/363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/comments?post=363"}],"version-history":[{"count":3,"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/posts\/363\/revisions"}],"predecessor-version":[{"id":387,"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/posts\/363\/revisions\/387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/media\/373"}],"wp:attachment":[{"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/media?parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/categories?post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathieu-ghost.ovh\/index.php\/wp-json\/wp\/v2\/tags?post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}