如何使用 bup restore 修复慢速 bup fuse 文件复制
如果你使用 bup fuse 挂载 bup 仓库,然后尝试从中 cp -r 一个目录,你可能已经注意到
bup restore 比 bup fuse 快得多。在我的用例中,大约 32k 个文件总共 1.3GB 需要恢复,bup fuse 花了超过 2 小时,而 bup restore 不到一分钟就完成了。
这是一个示例
bup_restore_example.sh
BUP_DIR=/tmp/my-website.bup/ bup restore wordpress/2023-08-01-000044/wordpress不知道在这里输入什么路径?使用 bup ls 查找。从顶层开始:
bup_ls_top.sh
BUP_DIR=/tmp/my-website.bup/ bup ls然后继续向下层级直到到达你打算恢复的文件夹:
bup_ls_hierarchy.sh
BUP_DIR=/tmp/my-website.bup/ bup ls wordpress/
BUP_DIR=/tmp/my-website.bup/ bup ls wordpress/2023-08-01-000044
BUP_DIR=/tmp/my-website.bup/ bup ls wordpress/2023-08-01-000044/wordpressCheck out similar posts by category:
Bup
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow