Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试备份我的共享 bzr 存储库。我看过,bzr export hotcopy.tgz但似乎只是对最新版本进行了快照。
bzr export hotcopy.tgz
是否有进行备份的命令,或者我必须这样做
还是有更好的方法来备份 bzr 存储库?
你可以尝试这样的事情:
mkdir /tmp/emptyrepos && bzr init /tmp/emptyrepos && bzr send -r 1..last:1 -o - /tmp/emptyrepos | gzip > mybackup.bzr.gz
这将创建一个集市本机格式合并指令,您可以将其应用于空存储库以重新创建所有状态。
或者,将当前的结帐 tar 起来可能是安全的。磁盘格式应设计为安全地处理您可能使用 tar 获取的部分更新。