]> git.proxmox.com Git - proxmox-offline-mirror.git/commitdiff
docs: adapt to pool/mirror changes
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Sep 2022 11:18:08 +0000 (13:18 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 9 Sep 2022 12:02:05 +0000 (14:02 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
docs/introduction.rst
docs/offline-mirror.rst

index 00d033467c21499e0d89784f9322a7dfd4828f19..07bcfbc0da4986dd367e2cc72393b8e8b76c070c 100644 (file)
@@ -52,17 +52,21 @@ Technical Overview
 Behind the scenes, one or more `pools` consisting of
 
 - a pool directory containing checksum files (e.g., `sha256/3dc7bc5f82cdcc4ea0f69dd30d5f6bb19e0ccc36f4a79c865eed0e7a370cd5e4`)
-- a base directory containing directories and hardlinks to the checksum files inside the pool
+- a link directory containing directories and hardlinks to the checksum files inside the pool
   directory
 
-are used to store the repository contents ("snapshots") in a space-efficient way.
+are used to store the repository contents ("snapshots") of repository mirrors in a space-efficient way.
 
 When adding a file, the following steps are done: first the ckecksum file(s) are added, then they
-are linked under one or more paths.  A garbage collect operation will iterate over all files in the
-base directory and remove those, which are not (or no longer) a hardlink to any checksum files. It
+are linked under one or more paths. A garbage collect operation will iterate over all files in the
+link directory and remove those, which are not (or no longer) a hardlink to any checksum files. It
 will also remove any checksum files which have no hardlinks outside of the pool's checksum file
 directories.
 
+A pool directory can be shared by multiple mirrors in order to deduplicate stored files across the
+mirror boundary. For example, it is recommended to have a single pool directory (mirror base directory)
+for all mirrors of Proxmox repositories.
+
 The default config path is ``/etc/proxmox-offline-mirror.cfg``, but it can be overriden on a per
 command basis (for example, to allow operation as a non-root user). Use the ``--config`` CLI option or
 the ``PROXMOX_OFFLINE_MIRROR_CONFIG`` environment variable.
index c5f03c1911890c7f14d88ae02ebac6ab11b10726..ac78e9a5c3af16e9fff0fb472a97cd0f7bb14f66 100644 (file)
@@ -29,7 +29,11 @@ following command can be used:
    --key-path /etc/apt/trusted.gpg.d/debian-archive-bullseye-security-automatic.gpg \
    --sync true \
    --verify true \
-   --dir /path/to/mirror/dir/debian-bullseye-security
+   --base-dir /path/to/mirror/base-dir
+
+.. note:: The `base-dir` directory can be shared by mirrors for repositories that have common
+   contents to avoid storing files more than once. For example, having a single base directory
+   for all mirrors referencing Proxmox repositories is recommended.
 
 .. note:: The `all` architecture is meant for architecture independent packages, not for all
    possible architectures. It is usually always sensible to add it in addition to the host-specific