因 2020-12-03 将工作环境从 Windows 10 迁移到 UOS v20 后没有找到合适的 在线 Linux 备份 方案。
从而诞生了 MADBU 。
1. LVM Snapshot
在 EXT4 外嵌套 LVM 虽然对当前系统影响不大,但类似 UOS 这种结构特殊的系统(包含 A/B 分区),可能导致系统后续出现其他问题。
2. ZFS / XFS
需要对当前系统进行迁移,而目标系统不一定支持此类文件系统。
3. BtrFS
关于 Btrfs 目前有较多言论表示:其可靠性不佳,存在随机丢失文件的现象。
although filesystems with their own block device management systems such as ZFS and BTRFS can not be supported
sudo apt install -y dialog pv pigz
dattabd
写时复制内核模块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
深度 Linux V20 与统信 UOS V20sudo 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
git clone https://gitlab.com/dfc643/datto-backup
cd datto-backup/
chmod +x madbu.sh
sudo bash madbu.sh
例如从 LiveCD 中恢复备份
gzip -dc /path/to/your/sda3.img.gz | dd of=/dev/sda3
The MIT License (MIT)
Copyright (c) 2021 xRetia Labs
Copyright (c) 2021 MoeArt Inc. (www.acgdraw.com)
The xRetia Labs is apart of MoeArt Inc. which working for opensource project.
Copyright (c) 2021 MoeArt Inc. (www.acgdraw.com)
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/.
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.