From 84322d8c75a46f14c4b3487254b463c058102208 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 6 Dec 2019 19:20:05 +0100 Subject: [PATCH] docs/administration-guide.rst: doc prune --dry-run --- docs/administration-guide.rst | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/administration-guide.rst b/docs/administration-guide.rst index d5a60a55..a4406ce5 100644 --- a/docs/administration-guide.rst +++ b/docs/administration-guide.rst @@ -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 this case, the last failed backup is retained. - .. code-block:: console # proxmox-backup-client prune --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 in the chunk-store. The chunk-store still contains the data blocks unless you are performing :ref:`garbage-collection`.