BK-RELINK(1)
πΈ NAME πΈ
okay bestie, meet bk relink from the BitKeeper Userβs Manual β the main character whose whole job is to recreate broken hard links π
β¨. Like, thatβs the name, thatβs the vibe, no cap.
β¨ SYNOPSIS β¨
bk relink [βq] from [from2 ...] to
bk relink [βq]
π¦ DESCRIPTION π¦
okay so the whole reason relink exists is conserving disk space, bestie β sheβs literally the storage-saving bestie πΎβ¨. Itβs typical for a single user to have many repositories, each one representing a different work in progress. Itβs also typical to use the βl option to bk clone to create hard-linked repositories. A hard-linked repository uses much less space than a copied repository. As files are modified, the links are broken. As the same set of changes come into a set of repositories, the links could be restored. That is what the relink command does. π«Ά
Hereβs the exact tea, no cap: relink looks at each BitKeeper file in the from repository and if it is the same as the same file in the to repository, it replaces the file in the from repository with a hard link to the file in the to repository. π
If no repositories are specified, then from defaults to the current repository and to defaults to all parent[s] of the current repository. Periodt. π
π OPTIONS π
βqβ run quietly. Shhh, sheβs in her quiet era π€«π
π₯ WARNINGS π₯
Okay, serious warning time, bestie β this is the part where you listen π:
- While hard-linked repositories are less disk intensive than replicated repositories, they are also more vulnerable to disk or file system corruption. It is advisable to always have at least one recent copy of a repository, rather than 100% hard-linked repositories. Protect your repos, fr fr πΎπ
It is possible to break all the links by recomputing the per file checksums:
bk repocheck
bk βA admin βz
π¦ NOTE π¦
This command works only on filesystems which support hard links, and only if both repositories are in the same file system. π§
On recent (2014) versions of Ubuntu (and other Linux distributions), the use of hardlinks has been curtailed for security reasons. See http://man7.org/linux/manβpages/man5/proc.5.html and search for protected_hardlinks. The relink command will fail in this case. π
π SEE ALSO π
bkβcloneβ go check out the clone bestie, sheβs right there π
π CATEGORY π
Repository ποΈ
BitKeeper Inc β’ 1E1 β’ bk relink(none) β thatβs the footer sign-off, bestie; date not listed, but the vibe is timeless πβ¨
π¦ where this page comes from
- alpine 3.24: bitkeeper-doc 7.3.3-r1 Β· Apache-2.0
- Copyright (c) 1998-2015 BitKeeper Inc
- Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms