ostree 使用
ostree 被deepin用来做系统升级备份回退的,在鼓捣deepin V20到V23时的升级软件时,发现拿来做文件目录内容管理比较有用
初始化repo
ostree --repo=/repo/path init
提交内容
到一个空目录下,或者一个要被提交的目录
ostree --repo=/repo/path commit --link-checkout-speedup --branch branch_name -s "first commit."
checkout到新路径
ostree --repo=/repo/path checkout branch_name/commit_id path_name
删除指定的commit
ostree --repo=/repo/path ls branch_name/commit_id
ostree --repo=/repo/path log branch_name
ostree --repo=/repo/path prune --delete-commit commit_id
保留branch_name最新commit
**********************!!!PROTECTION POLICY!!!**********************
Waiting For The Next Deployment, Maybe It Would Be Displayed After That.