docs/administration-guide.rst: doc prune --dry-run
This commit is contained in:
parent
fa0b950070
commit
84322d8c75
|
@ -451,12 +451,25 @@ The prune command also looks for unfinished and incomplete backups and
|
||||||
removes them unless they are newer than the last successful backup. In
|
removes them unless they are newer than the last successful backup. In
|
||||||
this case, the last failed backup is retained.
|
this case, the last failed backup is retained.
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
# proxmox-backup-client prune <group> --keep-daily 7 --keep-weekly 4 --keep-monthly 3
|
# proxmox-backup-client prune <group> --keep-daily 7 --keep-weekly 4 --keep-monthly 3
|
||||||
|
|
||||||
|
|
||||||
|
You can use the ``--dry-run`` option to test your settings. This just
|
||||||
|
shows the list of existing snapshots and what action prune would take
|
||||||
|
on that.
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
# proxmox-backup-client prune host/elsa --dry-run --keep-daily 1 --keep-weekly 3
|
||||||
|
host/elsa/2019-12-04T13:20:37Z keep
|
||||||
|
host/elsa/2019-12-03T09:35:01Z remove
|
||||||
|
host/elsa/2019-11-22T11:54:47Z keep
|
||||||
|
host/elsa/2019-11-21T12:36:25Z remove
|
||||||
|
host/elsa/2019-11-10T10:42:20Z keep
|
||||||
|
|
||||||
|
|
||||||
.. note:: Neither the ``prune`` command nor the ``forget`` command free space
|
.. note:: Neither the ``prune`` command nor the ``forget`` command free space
|
||||||
in the chunk-store. The chunk-store still contains the data blocks
|
in the chunk-store. The chunk-store still contains the data blocks
|
||||||
unless you are performing :ref:`garbage-collection`.
|
unless you are performing :ref:`garbage-collection`.
|
||||||
|
|
Loading…
Reference in New Issue