Skip to content

Commit

Permalink
Merge pull request #7174 from nextcloud/enh/noid/background-job-expir…
Browse files Browse the repository at this point in the history
…e-versions

Documentation how to disable expire versions background job
  • Loading branch information
PVince81 authored Oct 26, 2021
2 parents 7e83af0 + ad1e7c7 commit d1ebf05
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions admin_manual/configuration_files/file_versioning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,15 @@ Additional options are:

* ``disabled``
Disable the Versions app; no old file versions will be deleted.

Background job
--------------

To delete expired versions a background jobs runs every 30 minutes.
It's possible to deactivate the background job and setup a (system) cron to expire the versions via occ.

Deactivate background job: ``occ config:app:set --value=no files_versions background_job_expire_versions``

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

Expire versions: ``occ versions:expire`` or ``occ versions:expire --quiet`` (without the progress bar)

0 comments on commit d1ebf05

Please sign in to comment.