Version control

Nextcloud supports simple version control system for files. Versioning creates backups of files which are accessible via the Versions tab on the Details sidebar. This tab contains the history of the file where you can roll back a file to any previous version. Changes made at intervals greater than two minutes are saved in data/[user]/versions.


To restore a specific version of a file, click the circular arrow to the left. Click on the timestamp to download it.

The versioning app expires old versions automatically to make sure that the user doesn’t run out of space. This pattern is used to delete old versions:

  • For the first second we keep one version
  • For the first 10 seconds Nextcloud keeps one version every 2 seconds
  • For the first minute Nextcloud keeps one version every 10 seconds
  • For the first hour Nextcloud keeps one version every minute
  • For the first 24 hours Nextcloud keeps one version every hour
  • For the first 30 days Nextcloud keeps one version every day
  • After the first 30 days Nextcloud keeps one version every week

The versions are adjusted along this pattern every time a new version gets created.

The version app never uses more that 50% of the user’s currently available free space. If the stored versions exceed this limit, Nextcloud deletes the oldest versions until it meets the disk space limit again.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Accessing your files using the Nextcloud Web interface

You can access your Nextcloud files with the Nextcloud Web interface and create, preview, edit,...

Accessing Nextcloud files using WebDAV

Nextcloud fully supports the WebDAV protocol, and you can connect and synchronize with your...

Gallery app

The Pictures app has been rewritten and improved, and is now called the Gallery app. It supports...

Managing deleted files

When you delete a file in Nextcloud, it is not immediately deleted permanently. Instead, it is...

Desktop and mobile synchronization

For synchronizing files with your desktop computer, we recommend using the Nextcloud Sync Client...