Skip to content

Commit e10bc6f

Browse files
authored
Merge pull request #13795 from nextcloud/fix/72738/add-note-about-job-run
fix: add note about change in behaviour of the job
2 parents cf515ca + d6bd703 commit e10bc6f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

admin_manual/configuration_files/file_versioning.rst

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ 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+
Nextcloud manages file versions using a combination of on-save pruning and scheduled cleanup. This ensures that versions are retained while respecting storage quotas.
25+
26+
During Version Creation
27+
-----------------------
28+
29+
Nextcloud automatically creates new file versions whenever a file is modified, allowing users to restore previous states when needed. After each new version is stored, the system automatically checks storage limits and retention rules. Versions are filtered according to the above pattern to keep representative versions and remove redundant ones. If the user’s quota is exceeded, auto-expiry is triggered.
30+
When storage space runs low, Nextcloud sorts all versions from oldest to newest and removes the oldest ones first, while always preserving at least the two most recent versions to free up space.
31+
32+
During the Regular Background Job
33+
---------------------------------
34+
35+
Nextcloud runs a background cleanup task that automatically removes old file versions for each user. During this process, the system checks the user's version storage folder and identifies versions that are older than the configured maximum retention period or whose original files no longer exist.
36+
When an outdated or orphaned version is found, it is safely deleted from both the filesystem and the version database to reclaim storage space and maintain consistency.
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
@@ -30,12 +44,12 @@ You may alter the default pattern in ``config.php``. The default setting is
3044

3145
Additional options are:
3246

33-
* ``D, auto``
34-
Keep versions at least for D days, apply expiration rules to all versions
47+
* ``D, auto``
48+
Keep versions at least for D days, apply expiration rules to all versions
3549
that are older than D days
3650

37-
* ``auto, D``
38-
Delete all versions that are older than D days automatically, delete other
51+
* ``auto, D``
52+
Delete all versions that are older than D days automatically, delete other
3953
versions according to expiration rules
4054

4155
* ``D1, D2``

0 commit comments

Comments
 (0)