Skip to content

Commit a5aa67f

Browse files
committed
fix: added the paragraph above note and made the changes to additional options as per config
1 parent 02dfcf0 commit a5aa67f

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

admin_manual/configuration_files/file_versioning.rst

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,46 @@ The Versions app never uses more than 50% of the user's currently available
2121
free space. If the stored versions exceed this limit, Nextcloud deletes the
2222
oldest file versions until it meets the disk space limit again.
2323

24+
The ``versions_retention_obligation`` setting behaves slightly differently
25+
depending on whether version expiration is triggered by an *explicit job run*
26+
(for example, via ``occ versions:expire`` or a scheduled background job) or by
27+
*automatic expiry*.
28+
29+
Explicit job-based expiration is *strict* and adheres closely to the configured
30+
``versions_retention_obligation``.
31+
32+
Auto-expiry follows the same retention principles but may apply them more flexibly, allowing minor deviations when
33+
necessary to maintain adequate free storage space.
34+
35+
This distinction can lead to different results depending on whether cleanup is
36+
performed automatically or manually.
37+
2438
.. note:: Versions named by a user will never be deleted.
2539

2640
You may alter the default pattern in ``config.php``. The default setting is
2741
``auto``, which sets the default pattern::
2842

2943
'versions_retention_obligation' => 'auto',
3044

45+
Default setting. Keeps files and folders in the trash bin for at least **30** days.
46+
Then, **if space is needed**, deletes trashed files anytime after that.
47+
3148
Additional options are:
3249

33-
* ``D, auto``
34-
Keep versions at least for D days, apply expiration rules to all versions
35-
that are older than D days
50+
* ``D1, auto``
51+
Keeps files and folders in the trash bin for at least **D1** days.
52+
Then, **if space is needed**, deletes trashed files anytime after that.
3653

37-
* ``auto, D``
38-
Delete all versions that are older than D days automatically, delete other
39-
versions according to expiration rules
54+
* ``auto, D2``
55+
**If space is needed**, deletes trashed files anytime.
56+
After **D2** days, delete all trashed files automatically.
4057

4158
* ``D1, D2``
42-
Keep versions for at least D1 days and delete when they exceed D2 days.
59+
Keeps files and folders in the trash bin for at least **D1** days.
60+
Then, after **D2** days, delete all trashed files automatically.
4361

4462
* ``disabled``
45-
Disable the Versions app; no old file versions will be deleted.
63+
Trash bin auto clean is disabled, files and folders will be kept forever.
4664

4765
Background job
4866
--------------
@@ -54,22 +72,4 @@ Deactivate background job: ``occ config:app:set --value=no files_versions backgr
5472

5573
Activate background job: ``occ config:app:delete files_versions background_job_expire_versions``
5674

57-
Expire versions: ``occ versions:expire`` or ``occ versions:expire --quiet`` (without the progress bar)
58-
59-
.. note::
60-
61-
*Deviations in behavior: “job run” vs “auto-expiry”*
62-
63-
The ``versions_retention_obligation`` setting behaves slightly differently
64-
depending on whether version expiration is triggered by an *explicit job run*
65-
(for example, via ``occ versions:expire`` or a scheduled background job) or by
66-
*automatic expiry*.
67-
68-
Explicit job-based expiration is *strict* and adheres closely to the configured
69-
``versions_retention_obligation``.
70-
71-
Auto-expiry follows the same retention principles but may apply them more flexibly, allowing minor deviations when
72-
necessary to maintain adequate free storage space.
73-
74-
This distinction can lead to different results depending on whether cleanup is
75-
performed automatically or manually.
75+
Expire versions: ``occ versions:expire`` or ``occ versions:expire --quiet`` (without the progress bar)

0 commit comments

Comments
 (0)