因 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/.
1
YouLMAO 2021-01-03 23:52:04 +08:00 via Android
啥情况,raid1 不是一样的吗
|
3
xlibve 2021-01-04 11:58:27 +08:00
可以增量合并吗?我们春节后要切换 arm 平台,“开心”。。。。。。
|
4
dfc643 OP @xlibve dattobd 可以,但 madbu 没做这个功能,可以查看一下 dattobd 官方文档
|
5
ungrown 2021-01-05 13:19:56 +08:00 1
建议在添加对 borgbackup 的支持,便可在卷影快照的基础上增加增量、块去重、备份库惯例等等功能
|