[problem help]deepin23的系统备份和恢复是怎么实现的?

[problem help]deepin23的系统备份和恢复是怎么实现的?

目前deepin23的控制中心里没有系统恢复的入口,只有开机时的Grub启动项中“恢复系统”这一个入口。

系统备份的默认配置文件:

/etc/deepin-upgrade-manager/ready/data.yaml

target:

backup_list:

- "/boot"

- "/usr"

- "/etc"

- "/var/lib/apt"

- "/var/lib/dkms"

- "/var/lib/dpkg"

- "/var/lib/man-db"

- "/var/lib/initramfs-tools"

- "/var/lib/systemd/deb-systemd-helper-enabled"

- "/var/lib/selinux"

hold_list:

- "/usr/lib/locale/locale-archive"

- "/etc/locale.gen"

- "/usr/share/deepin-defender/localcache.db"

after_run: "/usr/bin/deepin-upgrade-manager-tool --action=notify"

/etc/deepin-upgrade-manager/config.json

{"config_version":"1.0.11","distribution":"23","active_version":"20220210","cache_dir":"/usr/.osrepo-cache","auto_cleanup":true,"repo_list":[{"repo_mount_point":"/persistent","data_origin":"","repo":"/persistent/osroot/repo","snapshot_dir":"/persistent/osroot/snapshot","config_dir":"/persistent/osroot/config","stage_dir":"/persistent/osroot/cache","Afer_Run":"","Plymouth_Theme":"","subscribe_list":[],"filter_list":[]}],"max_version_retention":2,"max_repo_retention":3}

当前备份恢复所用的配置参见/persistent/osroot/config目录(全盘安装情形下)

系统备份恢复相关的常见命令:

初始化系统备份:sudo deepin-upgrade-manager --action=init

提交系统备份:sudo deepin-upgrade-manager --action=commit

列出系统备份列表:sudo deepin-upgrade-manager --action=list 或省略为:sudo deepin-upgrade-manager

还原指定的系统备份:sudo deepin-upgrade-manager --action=rollback v23.x.x.xxxxxxxx

(更底层一点调用的是ostree命令)

这是相应的项目:https://github.com/linuxdeepin/deepin-upgrade-manager

相关作品

一般男性多粗算正常
约彩365彩票官方app下载安卓

一般男性多粗算正常

📅 07-16 👀 5928
2022年国际足联世界杯种子排名
日博365官网

2022年国际足联世界杯种子排名

📅 06-30 👀 5472