Borg-Space — Report and track the size of your Emborg repositories ================================================================== .. image:: https://pepy.tech/badge/borg-space/month :target: https://pepy.tech/project/borg-space .. image:: https://img.shields.io/pypi/v/borg-space.svg :target: https://pypi.python.org/pypi/borg-space .. image:: https://img.shields.io/pypi/pyversions/borg-space.svg :target: https://pypi.python.org/pypi/borg-space/ :Author: Ken Kundert :Version: 2.2 :Released: 2023-06-12 *Borg-Space* is an accessory for Emborg_. It reports on the space consumed by your *BorgBackup* repositories. You can get this information using the ``emborg info`` command, but there are several reasons to prefer *Borg-Space*. #. *Borg-Space* is capable of reporting on many repositories at once. #. The *Emborg* *info* command gives a great deal of information, whereas *Borg-Space* only reports the space consumed by the repository, so is much more compact. #. The report is user customizable. #. *Borg-Space* can record the size of your repositories each time it is run so you can track the space requirements over time. #. Finally, *Borg-Space* can graph the recorded values. To show the size of one or more repositories, simply run:: # borg-space home home: 12.81 GB This reports on the latest repository size and, of course, assumes that you have already run *emborg create*. You must not use the ``--fast`` command line option when running *create*. You can specify any number of repositories, and they can be composites. In the following example, *home* is an alias that expands to *borgbase* and *rsync*:: > borg-space home cache borgbase: 2.44 GB cache: 801 MB rsync: 2.81 GB You can specify repositories that are owned by others or that are on remote machines. In this case you will need permission to read the *Emborg* data directory for the repository. Specifically, ❬host❭:~❬user❭/.local/share/emborg/❬config❭.latest.nt must be accessible. ❬config❭ is the name of the *Emborg* configuration to be reported on, ❬host❭ is the name of the host on which the *Emborg create* command was run, and ❬user❭ is the name of the user that ran the command. To specify these repositories, a special naming scheme is used:: ❬config❭@❬host❭~❬user❭ This is referred to as the full repository specification, or repository spec. Both ``@❬host❭`` and ``~❬user❭`` are optional, ❬host❭ is not needed when referring to the local host and ❬user❭ is not needed when referring to the current user. Thus the *Emborg* configuration named *primary* owned by *root* on the host with the SSH name *neptune* is accessed with:: # borg-space primary@neptune~root primary@neptune~root: 57.74 GB Usage ----- *Borg-Space* supports the following command line arguments:: Usage: borg-space [--quiet] [--style