From: Thomas Lamprecht Date: Sat, 7 Nov 2020 14:51:09 +0000 (+0100) Subject: docs: expand prune section, mention simulator, add onlineHelp refs X-Git-Tag: v0.9.7~5 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3896f80cb363af5cd472e5fdd01c1876a5506e0c;p=proxmox-backup.git docs: expand prune section, mention simulator, add onlineHelp refs Signed-off-by: Thomas Lamprecht --- diff --git a/docs/images/screenshots/pbs-gui-datastore-content-prune-group.png b/docs/images/screenshots/pbs-gui-datastore-content-prune-group.png new file mode 100644 index 00000000..221e1f29 Binary files /dev/null and b/docs/images/screenshots/pbs-gui-datastore-content-prune-group.png differ diff --git a/docs/maintenance.rst b/docs/maintenance.rst index 16aabf07..1f3f129b 100644 --- a/docs/maintenance.rst +++ b/docs/maintenance.rst @@ -1,21 +1,87 @@ Maintenance Tasks ================= -Pruning & Garbage Collection ----------------------------- +.. _maintenance_pruning: -Pruning can be scheduled on both a backup group and a datastore level. To access -pruning functionality for a specific backup group, you can use the prune command -line option discussed in :ref:`backup-pruning`, or navigate to the **Content** -tab of the datastore and click the scissors icon in the **Actions** column of -the relevant backup group. To prune on a datastore level, scheduling options can -be found under the **Prune & GC** tab of the datastore. Here you can set -retention settings and edit the interval at which pruning takes place. +Pruning +------- + +Prune lets you specify which backup snapshots you want to keep. The +following retention options are available: + +``keep-last `` + Keep the last ```` backup snapshots. + +``keep-hourly `` + Keep backups for the last ```` hours. If there is more than one + backup for a single hour, only the latest is kept. + +``keep-daily `` + Keep backups for the last ```` days. If there is more than one + backup for a single day, only the latest is kept. + +``keep-weekly `` + Keep backups for the last ```` weeks. If there is more than one + backup for a single week, only the latest is kept. + + .. note:: Weeks start on Monday and end on Sunday. The software + uses the `ISO week date`_ system and handles weeks at + the end of the year correctly. + +``keep-monthly `` + Keep backups for the last ```` months. If there is more than one + backup for a single month, only the latest is kept. + +``keep-yearly `` + Keep backups for the last ```` years. If there is more than one + backup for a single year, only the latest is kept. + +The retention options are processed in the order given above. Each option +only covers backups within its time period. The next option does not take care +of already covered backups. It will only consider older backups. + +Unfinished and incomplete backups will be removed by the prune command unless +they are newer than the last successful backup. In this case, the last failed +backup is retained. + +Prune Simulator +^^^^^^^^^^^^^^^ + +You can use the built-in `prune simulator `_ +to explore the effect of different retetion options with various backup +schedules. + +Manual Pruning +^^^^^^^^^^^^^^ + +.. image:: images/screenshots/pbs-gui-datastore-content-prune-group.png + :target: _images/pbs-gui-datastore-content-prune-group.png + :align: right + :alt: Prune and garbage collection options + +To access pruning functionality for a specific backup group, you can use the +prune command line option discussed in :ref:`backup-pruning`, or navigate to +the **Content** tab of the datastore and click the scissors icon in the +**Actions** column of the relevant backup group. + +Prune Schedules +^^^^^^^^^^^^^^^ + +To prune on a datastore level, scheduling options can be found under the +**Prune & GC** tab of the datastore. Here you can set retention settings and +edit the interval at which pruning takes place. .. image:: images/screenshots/pbs-gui-datastore-prunegc.png + :target: _images/pbs-gui-datastore-prunegc.png :align: right :alt: Prune and garbage collection options + +.. _maintenance_gc: + +Garbage Collection +------------------ + You can monitor and run :ref:`garbage collection ` on the Proxmox Backup Server using the ``garbage-collection`` subcommand of ``proxmox-backup-manager``. You can use the ``start`` subcommand to manually @@ -33,6 +99,7 @@ Verification ------------ .. image:: images/screenshots/pbs-gui-datastore-verifyjob-add.png + :target: _images/pbs-gui-datastore-verifyjob-add.png :align: right :alt: Adding a verify job