Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,27 @@ Do not apply any expiration rules. Delete all versions after 30 days.
'versions_retention_obligation' => '30, 30',
----

== Show the Author of a Version
== Restoring a Version

You can enable and disable to show the author of a version in the versions history via an entry in config.php. For details see: xref:configuration/server/config_sample_php_parameters.adoc#save-and-display-the-author-of-each-version-of-uploaded-and-edited-files[Save and display the author of each version of uploaded and edited files]. This is helpful to keep track of who changed a version.
In the WebUI in the details view, there is a restore button next to the versions. It can be used to restore the file to a past version. Restore does not delete the old version, instead a new current version is created.

After adding the author, the version screen changes in the following way:
WARNING: Note that retention policy can be applied after the restore operation, which could result in the old version being removed because of the retention policy. This behavior can be changed with the persistent major version feature discussed in the section below.

image::configuration/files/files_versions/concious-persistent-major-versions.png[Author of a changed saved file,width=250]
== Extended Version Metadata

You can enable the feature via an entry in config.php. For details see: xref:configuration/server/config_sample_php_parameters.adoc#save-additional-metadata-for-versions[Save Additional Metadata for Versions].

image::configuration/files/files_versions/version-metadata.png[Extended Version Metadata,width=300]

=== Show the Author of a Version

You can enable and disable showing the author of a version in the versions history. This is helpful to keep track of who changed a version.

=== Conscious Persistent Major Versions

ownCloud can automatically generate version numbers for file versions. To enable this feature, the config setting to show a version's author must be enabled as described above. Based on this feature, one can define the actual version to be a major version which gets a major version number and all new upcoming versions start counting from this major number. To do so, the user has to click on the check mark on the left of the actual version to publish it as a major version.
ownCloud can automatically generate version numbers for file versions. Based on this feature, one can define the actual version to be a major version which gets a major version number and all new upcoming versions start counting from this major number. To do so, the user has to click on the check mark next to the version info to publish it as a major version. Major versions are persistent versions that are not subject to any retention policies set by ownCloud. Publishing the version persists it until the original file is deleted.

TIP: The versions follow the X.Y format, where X is a major part and Y is a minor part of the version. Version tags cannot be modified by the user, they are auto-generated by ownCloud.

== Enterprise File Retention

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -999,15 +999,18 @@ Available values:
'versions_retention_obligation' => 'auto',
....

=== Save and display the author of each version of uploaded and edited files.
=== Save additional metadata for versions
Comment thread
EParzefall marked this conversation as resolved.
Save additional metadata (author, version tag, etc.) of each version of uploaded and edited files.
Comment thread
EParzefall marked this conversation as resolved.

WARNING: This feature CANNOT be temporarily disabled once enabled.
Comment thread
EParzefall marked this conversation as resolved.
Disabling and re-enabling would require a repair job that erases all extended versions metadata.
WARNING: This does not work for S3 storage backends.

==== Code Sample

[source,php]
....
'file_storage.save_version_author' => false,
'file_storage.save_version_metadata' => false,
....

== ownCloud Verifications
Expand Down