{"id":351,"date":"2023-05-07T06:46:02","date_gmt":"2023-05-07T04:46:02","guid":{"rendered":"https:\/\/linowebserver.org\/?p=351"},"modified":"2023-05-07T06:47:56","modified_gmt":"2023-05-07T04:47:56","slug":"recover-from-snapshot","status":"publish","type":"post","link":"https:\/\/linowebserver.org\/index.php\/2023\/05\/07\/recover-from-snapshot\/","title":{"rendered":"Recover from Snapshot"},"content":{"rendered":"\n<p>to recover on a btrfs Filesystem you have to do follow simple steps<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Boot into your last working snapshot<\/li>\n\n\n\n<li><code>mount |grep 'subvol='<\/code><\/li>\n\n\n\n<li><code># keep in your mind 'X' means your drive<br>mount \/dev\/sdX -o subvol=\/ \/mnt<\/code> <\/li>\n\n\n\n<li><code># we remove the '@' by<br>mv \/mnt\/@ \/mnt \/@_old<\/code><\/li>\n\n\n\n<li><code># now we will recover the snapshot to our root-file-system.<br># Keep in your mind to replace 'X' with your snapshot number <br>btrfs subvolume snapshot \/mnt\/@.snapshots\/X\/snapshot \/mnt\/@<\/code><\/li>\n\n\n\n<li>reboot<\/li>\n<\/ul>\n\n\n\n<p>That&#8217;s all. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>to recover on a btrfs Filesystem you have to do follow simple steps That&#8217;s all.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,13,66,9],"tags":[81,21,25,47,80,82],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-howto-2","category-kali-linux","category-linux-3","category-linux","tag-btrfs","tag-cybersecurity","tag-informationsecurity-2","tag-informationtechnology","tag-recovery","tag-snapshot"],"_links":{"self":[{"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":2,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":354,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/posts\/351\/revisions\/354"}],"wp:attachment":[{"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linowebserver.org\/index.php\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}