mirror of
https://git.proxmox.com/git/proxmox-offline-mirror
synced 2025-07-25 23:18:18 +00:00
docs: offline-media: improve read- and understandability
by rephrasing parts to be easier to read or adding more context. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
parent
07fae362b6
commit
e5fe7f7cea
@ -1,9 +1,9 @@
|
|||||||
Offline Media
|
Offline Media
|
||||||
=============
|
=============
|
||||||
|
|
||||||
A Medium is a file system location on which mirrors and subscription info will be saved at.
|
A medium is a file system location on which mirrored repositories and subscription information can
|
||||||
This can be an external, portable disk (for example, USB pen drive) or a local network filesystem
|
be saved at to make it available to the offline Proxmox systems. This can be an external portable
|
||||||
export.
|
disk (for example a USB pen drive) or a local network share.
|
||||||
|
|
||||||
Setting Up a Medium
|
Setting Up a Medium
|
||||||
-------------------
|
-------------------
|
||||||
@ -31,20 +31,21 @@ Syncing a Medium
|
|||||||
To sync the local mirrors to a medium, the following command can be used:
|
To sync the local mirrors to a medium, the following command can be used:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
proxmox-offline-mirror medium sync --id pve-bullseye
|
proxmox-offline-mirror medium sync --id pve-bullseye
|
||||||
|
|
||||||
This command will sync all mirrors linked with this medium to the medium's mountpoint, as well as
|
This command will sync all mirrors linked with this medium to the medium's mount point.
|
||||||
sync all offline keys for further processing by ``proxmox-apt-repo`` on the target system.
|
Additionally, it will sync all offline keys for further processing by ``proxmox-apt-repo`` on the
|
||||||
|
target system.
|
||||||
|
|
||||||
Using a Medium
|
Using a Medium
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
After syncing a medium, unmount it and make it accessible on the (offline)
|
After syncing a medium, unmount it and make it accessible on the (offline) target system. Either
|
||||||
target system. You can now either manually point apt at the synced snapshots,
|
point `apt` directly at the synced snapshots on the medium or run ``proxmox-apt-repo setup``. The
|
||||||
or run ``proxmox-apt-repo setup`` to generate a sources.list.d snippet referecing
|
setup will let you select the mirrors and snapshots and can generate a `sources.list.d` snippet.
|
||||||
selected mirrors and snapshots. Don't forget to remove the snippet again after
|
This snippet can be saved to the ``/etc/apt/sources.list.d`` directory. The default file name is
|
||||||
the upgrade is done.
|
``offline-mirror.list``. Don't forget to remove the snippet after the upgrade is done.
|
||||||
|
|
||||||
To activate or update an offline subscription key, either use ``proxmox-apt-repo offline-key`` or
|
To activate or update an offline subscription key, either use ``proxmox-apt-repo offline-key`` or
|
||||||
``proxmox-apt-repo setup``.
|
``proxmox-apt-repo setup``.
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
Offline Repository Mirrors
|
Offline Repository Mirrors
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
Offline repository mirrors are pointing to APT repos, for example, those from Proxmox VE, Proxmox
|
Offline repository mirrors are pointing to APT repositories, for example from Proxmox VE, Proxmox
|
||||||
Backup Server or Debian. After initial setup you can mirror all of the available packages locally,
|
Backup Server or Debian. After the initial setup, you can mirror all the available packages locally.
|
||||||
organised by creating point in time snapshots of the repositories. Those snapshots can then be
|
They are organized by creating point-in-time snapshots of the repositories. Those snapshots can then
|
||||||
exported to configured media.
|
be exported to a configured medium.
|
||||||
|
|
||||||
Setting Up a Mirror
|
Setting Up a Mirror
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
First either run the ``setup`` wizard (``proxmox-offline-mirror setup``), or the
|
First, either run the ``setup`` wizard (``proxmox-offline-mirror setup``), or the
|
||||||
``config mirror add`` command.
|
``config mirror add`` command.
|
||||||
|
|
||||||
.. tip:: The quickest way to setup all relevant repositories for a Proxmox project is to use the
|
.. tip:: The quickest way to set up all relevant repositories for a Proxmox solution is to use the
|
||||||
``setup`` wizard, choose the product when adding a mirror and confirm the quesiton about
|
``setup`` wizard. Choose the product when adding a mirror and confirm the question regarding
|
||||||
auto-adding the Debian base repos.
|
auto-adding the Debian base repos.
|
||||||
|
|
||||||
For example, to manually add a mirror entry for the Debian Bullseye security repository, the
|
For example, to manually add a mirror entry for the Debian Bullseye security repository, the
|
||||||
following command can be used:
|
following command can be used:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
proxmox-offline-mirror config mirror add \
|
proxmox-offline-mirror config mirror add \
|
||||||
--id debian-bullseye-security \
|
--id debian-bullseye-security \
|
||||||
--architectures amd64 \
|
--architectures amd64 \
|
||||||
@ -32,7 +32,7 @@ following command can be used:
|
|||||||
--dir /path/to/mirror/dir/debian-bullseye-security
|
--dir /path/to/mirror/dir/debian-bullseye-security
|
||||||
|
|
||||||
.. note:: The `all` architecture is meant for architecture independent packages, not for all
|
.. note:: The `all` architecture is meant for architecture independent packages, not for all
|
||||||
possible architectures, and is normally always sensible to add in addition to the host specific
|
possible architectures. It is usually always sensible to add it in addition to the host-specific
|
||||||
architecture.
|
architecture.
|
||||||
|
|
||||||
Syncing a Mirror
|
Syncing a Mirror
|
||||||
@ -41,7 +41,7 @@ Syncing a Mirror
|
|||||||
To create the first (and subsequent) snapshots, the following command can be used:
|
To create the first (and subsequent) snapshots, the following command can be used:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
proxmox-offline-mirror mirror snapshot create debian-bullseye-security
|
proxmox-offline-mirror mirror snapshot create debian-bullseye-security
|
||||||
|
|
||||||
.. note:: Depending on the parameters used and the size of the original repository, creating a
|
.. note:: Depending on the parameters used and the size of the original repository, creating a
|
||||||
@ -52,5 +52,5 @@ Space Management
|
|||||||
----------------
|
----------------
|
||||||
|
|
||||||
After removing a snapshot with ``proxmox-offline-mirror mirror snapshot remove``, a
|
After removing a snapshot with ``proxmox-offline-mirror mirror snapshot remove``, a
|
||||||
``proxmox-offline-mirror mirror gc`` invocation is needed to trigger an garbage collection and
|
``proxmox-offline-mirror mirror gc`` invocation is needed to trigger the garbage collection to
|
||||||
actually remove any no longer needed contents from the underlying hard link pool.
|
actually remove any contents from the underlying hard link pool that are no longer needed.
|
||||||
|
Loading…
Reference in New Issue
Block a user