{"id":248567,"date":"2021-01-01T20:34:44","date_gmt":"2021-01-01T12:34:44","guid":{"rendered":"http:\/\/4563.org\/?p=248567"},"modified":"2021-01-01T20:34:44","modified_gmt":"2021-01-01T12:34:44","slug":"madbu%ef%bc%8c%e4%b8%80%e4%b8%aa%e4%b8%93%e4%b8%ba-ext4-%e5%8d%b7%e5%bd%b1%e5%a4%8d%e5%88%b6%ef%bc%88%e5%86%99%e6%97%b6%e5%a4%8d%e5%88%b6%ef%bc%89%e6%8f%90%e4%be%9b%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=248567","title":{"rendered":"MADBU\uff0c\u4e00\u4e2a\u4e13\u4e3a EXT4 \u5377\u5f71\u590d\u5236\uff08\u5199\u65f6\u590d\u5236\uff09\u63d0\u4f9b\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  MADBU\uff0c\u4e00\u4e2a\u4e13\u4e3a EXT4 \u5377\u5f71\u590d\u5236\uff08\u5199\u65f6\u590d\u5236\uff09\u63d0\u4f9b\u7684\u89e3\u51b3\u65b9\u6848               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dfc643 <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h2>MADBU \u7684\u8bde\u751f<\/h2>\n<p>\u56e0 2020-12-03 \u5c06\u5de5\u4f5c\u73af\u5883\u4ece Windows 10 \u8fc1\u79fb\u5230 UOS v20 \u540e\u6ca1\u6709\u627e\u5230\u5408\u9002\u7684 <strong>\u5728\u7ebf Linux \u5907\u4efd<\/strong> \u65b9\u6848\u3002<br \/> \u4ece\u800c\u8bde\u751f\u4e86 MADBU \u3002 <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/01\/20210106_5ff5dd7b60d9a.svg\" alt=\"MADBU\uff0c\u4e00\u4e2a\u4e13\u4e3a EXT4 \u5377\u5f71\u590d\u5236\uff08\u5199\u65f6\u590d\u5236\uff09\u63d0\u4f9b\u7684\u89e3\u51b3\u65b9\u6848\" \/><\/p>\n<h2>\u4e3a\u4ec0\u4e48\u4e0d\u662f\u4ed6\u4eec\uff1f<\/h2>\n<p><strong>1. LVM Snapshot<\/strong><br \/> \u5728 EXT4 \u5916\u5d4c\u5957 LVM \u867d\u7136\u5bf9\u5f53\u524d\u7cfb\u7edf\u5f71\u54cd\u4e0d\u5927\uff0c\u4f46\u7c7b\u4f3c UOS \u8fd9\u79cd\u7ed3\u6784\u7279\u6b8a\u7684\u7cfb\u7edf\uff08\u5305\u542b A\/B \u5206\u533a\uff09\uff0c\u53ef\u80fd\u5bfc\u81f4\u7cfb\u7edf\u540e\u7eed\u51fa\u73b0\u5176\u4ed6\u95ee\u9898\u3002 <\/p>\n<p><strong>2. ZFS \/ XFS<\/strong><br \/> \u9700\u8981\u5bf9\u5f53\u524d\u7cfb\u7edf\u8fdb\u884c\u8fc1\u79fb\uff0c\u800c\u76ee\u6807\u7cfb\u7edf\u4e0d\u4e00\u5b9a\u652f\u6301\u6b64\u7c7b\u6587\u4ef6\u7cfb\u7edf\u3002 <\/p>\n<p><strong>3. BtrFS<\/strong><br \/> \u5173\u4e8e Btrfs \u76ee\u524d\u6709\u8f83\u591a\u8a00\u8bba\u8868\u793a\uff1a\u5176\u53ef\u9760\u6027\u4e0d\u4f73\uff0c\u5b58\u5728\u968f\u673a\u4e22\u5931\u6587\u4ef6\u7684\u73b0\u8c61\u3002 <\/p>\n<h2>MADBU \u7684\u5fc5\u5907\u6761\u4ef6<\/h2>\n<ol>\n<li>\u6e90\u78c1\u76d8\u4e3a <strong>EXT2 \/ 3 \/ 4<\/strong> \u683c\u5f0f\uff08\u53ef\u5d4c\u5957 LVM \uff09<\/li>\n<li> \u6e90\u78c1\u76d8\u4e0d\u80fd\u4e3a <strong>XFS \/ ZFS \/ BTRFS<\/strong>\n<pre><code>although filesystems with their own block device management systems such as ZFS and BTRFS can not be supported <\/code><\/pre>\n<\/li>\n<li> Linux \u5185\u6838\u5c0f\u4e8e 5.5.11 (dattobd \u7f3a\u9677)\n<ul>\n<li>datto\/dattobd \u00a0 <strong>\u7f3a\u9677#221<\/strong> <\/li>\n<li>datto\/dattobd \u00a0 <strong>\u63d0\u4ea4#229<\/strong> (\u672a\u5408\u5e76) <\/li>\n<\/ul>\n<\/li>\n<li>\u7cfb\u7edf\u5b89\u88c5\u8f6f\u4ef6\u5305 <strong>dialog, pv, pigz<\/strong><\/li>\n<\/ol>\n<h2>\u5b89\u88c5\u5fc5\u8981\u4f9d\u8d56<\/h2>\n<ol>\n<li> \u5b89\u88c5\u4f9d\u8d56\u7ec4\u4ef6\u5305\uff08\u4ee5 Debian \u4e3a\u4f8b\uff09\n<pre><code>sudo apt install -y dialog pv pigz <\/code><\/pre>\n<\/li>\n<li> \u5b89\u88c5 <code>dattabd<\/code> \u5199\u65f6\u590d\u5236\u5185\u6838\u6a21\u5757<br \/> <strong>Debian \u4e0e Ubuntu \u5bb6\u65cf\u7cfb\u7edf<\/strong>\n<pre><code>sudo apt-key adv --fetch-keys https:\/\/cpkg.datto.com\/DATTO-PKGS-GPG-KEY echo \"deb [arch=amd64] https:\/\/cpkg.datto.com\/datto-deb\/public\/$(lsb_release -sc) $(lsb_release -sc) main\" | sudo tee \/etc\/apt\/sources.list.d\/datto-linux-agent.list sudo apt-get update sudo apt-get install dattobd-dkms dattobd-utils <\/code><\/pre>\n<p> <strong>\u6df1\u5ea6 Linux V20 \u4e0e\u7edf\u4fe1 UOS V20<\/strong><\/p>\n<pre><code>sudo apt-key adv --fetch-keys https:\/\/cpkg.datto.com\/DATTO-PKGS-GPG-KEY echo \"deb [arch=amd64] https:\/\/cpkg.datto.com\/datto-deb\/public\/buster buster main\" | sudo tee \/etc\/apt\/sources.list.d\/datto-linux-agent.list sudo apt-get update sudo apt-get install dattobd-dkms dattobd-utils <\/code><\/pre>\n<\/li>\n<li>\u91cd\u542f\u8ba1\u7b97\u673a\u540e\u751f\u6548<\/li>\n<\/ol>\n<h2>MADBU \u4f7f\u7528\u65b9\u6cd5<\/h2>\n<h3>\u5907\u4efd\u5f53\u524d\u8fd0\u884c\u4e2d\u7684\u7cfb\u7edf<\/h3>\n<pre><code>git clone https:\/\/gitlab.com\/dfc643\/datto-backup cd datto-backup\/ chmod +x madbu.sh sudo bash madbu.sh <\/code><\/pre>\n<h3>\u4ece LiveCD \u6216\u8005\u5176\u4ed6\u7cfb\u7edf\u6062\u590d\u5907\u4efd<\/h3>\n<p>\u4f8b\u5982\u4ece LiveCD \u4e2d\u6062\u590d\u5907\u4efd<\/p>\n<pre><code>gzip -dc \/path\/to\/your\/sda3.img.gz | dd of=\/dev\/sda3 <\/code><\/pre>\n<h2>\u7f3a\u9677\u53cd\u9988<\/h2>\n<ul>\n<li>\u754c\u9762\u7f3a\u9677\uff1a https:\/\/gitlab.com\/dfc643\/datto-backup\/-\/issues<\/li>\n<li>\u5185\u6838\u6a21\u5757\u7f3a\u9677\uff1a https:\/\/github.com\/datto\/dattobd\/issues<\/li>\n<\/ul>\n<h2>Copyright<\/h2>\n<h3>MADBU License<\/h3>\n<p>The MIT License (MIT)<br \/> Copyright (c) 2021 xRetia Labs<br \/> Copyright (c) 2021 MoeArt Inc. (www.acgdraw.com)<\/p>\n<h3>About xRetia Labs<\/h3>\n<p>The xRetia Labs is apart of MoeArt Inc. which working for opensource project.<br \/> Copyright (c) 2021 MoeArt Inc. (www.acgdraw.com)<\/p>\n<h3>dattobd kernel module and userspace applications<\/h3>\n<p>dattobd is free software: you can redistribute it and\/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, under version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http:\/\/www.gnu.org\/licenses\/.<\/p>\n<h2>\u5f15\u7528<\/h2>\n<ul>\n<li>Linux \u5728\u7ebf\u7cfb\u7edf\u5b8c\u6574\u5907\u4efd\u65b9\u6848\uff1f<\/li>\n<li>Datto Block Driver<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4825777\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : YouLMAO <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5565\u60c5\u51b5\uff0craid1 \u4e0d\u662f\u4e00\u6837\u7684\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4825778\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @YouLMAO \uff1f\uff1f<br \/>\u4f60\u5728\u8bf4\u4ec0\u4e48\uff1f\u8fd9\u662f\u5907\u4efd\u600e\u4e48\u4f1a\u626f\u5230 RAID \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4825779\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xlibve <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u589e\u91cf\u5408\u5e76\u5417\uff1f\u6211\u4eec\u6625\u8282\u540e\u8981\u5207\u6362 arm \u5e73\u53f0\uff0c\u201c\u5f00\u5fc3\u201d\u3002\u3002\u3002\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4825780\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : dfc643 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xlibve dattobd \u53ef\u4ee5\uff0c\u4f46 madbu \u6ca1\u505a\u8fd9\u4e2a\u529f\u80fd\uff0c\u53ef\u4ee5\u67e5\u770b\u4e00\u4e0b dattobd \u5b98\u65b9\u6587\u6863                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4825781\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ungrown <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u8bae\u5728\u6dfb\u52a0\u5bf9 borgbackup \u7684\u652f\u6301\uff0c\u4fbf\u53ef\u5728\u5377\u5f71\u5feb\u7167\u7684\u57fa\u7840\u4e0a\u589e\u52a0\u589e\u91cf\u3001\u5757\u53bb\u91cd\u3001\u5907\u4efd\u5e93\u60ef\u4f8b\u7b49\u7b49\u529f\u80fd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>MADBU\uff0c\u4e00\u4e2a\u4e13\u4e3a EXT4 \u5377&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/248567"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=248567"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/248567\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=248567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=248567"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=248567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}