.. _mirrors-transition:

=============================================================
Transition from anaconda-server-sync-conda to anaconda-mirror
=============================================================

Configuration file key change
=============================

The key to specify the package white list has changed from ``pkg_list`` to
``package_list``.

How to mirror to an air-gapped environment
==========================================

To use ``anaconda-mirror`` in an air-gapped environment, export
a mirror tarball from the source server and import it to the
air-gapped server.

Export a mirror::

    anaconda-mirror export mirror.tar

Import it to another environment::

    anaconda-mirror import $USB/mirror.tar

If you need to specify a custom configuration file, use any of the commands with ``--config-file FILENAME``::

    anaconda-mirror import --config-file FILENAME $USB/mirror.tar

The :doc:`configuration docs <mirrors-sync-configuration>` have more detail on the configuration.
