File versions
When the content of a file is replaced, FileRun keeps the content that the file had as a previous version. This page describes what creates a previous version, how to look at, restore and delete previous versions, and the limits that the administrator sets.
What creates a previous version
FileRun keeps the current content of a file as a previous version when one of these replaces it:
- An upload. You upload a file with the name of a file that is already in the folder. When the uploaded file has the same size and the same date of change as the file in the folder, FileRun skips it, and the file does not change. See Uploading and downloading.
- A save in an editor. You save the file in the
Text Editor, theImage Editor, theSimple Spreadsheet Editor,draw.io,Excalidrawor an office editor. Each save makes a version. See Opening and editing files and Collaborative editing. - A copy or a move. You copy or move a file into a folder that has a file of the same name, and
you choose
Overwritein theItem already existswindow. When you move a file, its own previous versions join the previous versions of the file that it replaces. See Managing files and folders. - An extraction. You extract an archive into a folder that has files of the same names as files in the archive.
- A restoration. You restore a previous version. See Restoring a previous version.
- WebDAV and the desktop sync app. A WebDAV client or the desktop sync app saves a changed file over the file on the server. See WebDAV and Desktop sync.
These actions do not create a previous version:
- Replacing an empty file. Its empty content is not kept.
- Adding files to an existing Zip archive.
- Renaming or moving a file. The previous versions stay with the file, under its new name or in its new folder.
- Copying a file. The copy has no previous versions, also with
Make a copy.
Opening the list of versions
Right-click a file and choose Information → Previous versions. A window opens, with the title
File versions: and the name of the file.
You can also open it from the Details tab of a file that has previous versions. The tab shows
Version, the number of the current content of the file, and next to it a button with the tooltip
Previous versions.
The list has one row for each previous version, the newest at the top. It has these columns:
Version: the number of the version. Each new version gets the next number. The numbers do not change when older versions are removed.Date: when this content was replaced, that is, when the version was made.Size: the size of the version.Modified by: the user whose change replaced this content with a newer one. This is not always the user who wrote the content of the row.
When the file has no previous versions, the list is empty.
Previous versions is not offered:
- for a folder, or for several files at once
- for a file in the trash. See Previous versions and the trash.
- for a file that you opened through a web link
- while versioning is off. See When versioning is off.
Looking at a previous version
Select a row, then click one of these buttons at the bottom of the window:
Previewopens the version in a new browser tab, with the viewer that FileRun uses for this type of file. Double-clicking a row does the same.Downloaddownloads the version.
The buttons work on one row at a time. They are disabled until you select a row.
Restoring a previous version
Select a row and click Restore. FileRun does not ask for confirmation. It shows "Version
successfully restored.". When you close the message, the window closes and the file list reloads.
Restoring does this:
- The current content of the file becomes a new previous version, at the top of the list. So you can go back to it.
- The content of the version that you chose becomes the current content of the file.
- The file keeps its name, its place, its shares, its web links, its comments and its tags.
- The version that you chose stays in the list, unless the limit on the number of versions removes it. See How many versions are kept.
A restore is refused in these cases:
- The storage quota has no room for the growth of the file. Only the growth counts, because the current content becomes a previous version. See Previous versions and the storage quota.
- The version is larger than the
Upload max file sizeof your account. FileRun shows "Failed to restore file version!" and the sizes. See Uploading. - Your account cannot store the type of the file: "The file type is not allowed!". See Allowed file types.
Deleting a previous version
Select a row and click Delete. FileRun does not ask for confirmation. It removes the row and
shows "Version successfully deleted.".
Caution
A deleted version does not go to the trash. It cannot be restored.
How many versions are kept
The administrator sets the number of previous versions that FileRun keeps for each file, with
Number of old versions to keep for each file, under Files → Settings → General in the
control panel. The default is 2. See
File settings.
- When a new version would make the list longer than this number, FileRun deletes the versions with the lowest numbers, which are usually the oldest.
- Every save counts. When an editor saves a file several times while you work on it, each save takes one place in the list.
- When the administrator lowers the number, the extra versions of a file are deleted the next time that a version of this file is made.
- There is no time limit. A version stays until the limit removes it, until somebody deletes it, or until the file is deleted for good. See Data retention.
When versioning is off
The value 0 of Number of old versions to keep for each file turns versioning off. Then:
- The right-click menu does not offer
Previous versions, and theDetailstab does not showVersion. - When you upload a file in the web interface over a file of the same name, the old content goes to the trash. The file keeps its shares, its links, its comments and its tags. See What goes to the trash.
- When you save a file in an editor, or when a WebDAV client, the desktop sync app or a mobile app saves over it, the old content is deleted for good. It does not go to the trash.
- When you copy or move a file over a file of the same name with
Overwrite, or extract an archive over files of the same names, the file that is replaced goes to the trash. See What goes to the trash. - The previous versions made before stay on the server. FileRun shows them again when versioning is turned on again.
Warning
While versioning is off, a save in an editor cannot be undone. The same is true for a file that a WebDAV client, the desktop sync app or a mobile app saves over.
Previous versions and the storage quota
Previous versions do not count against the storage quota, also when the file is in the trash. See Storage quotas.
When an upload or a save in an editor replaces the content of a file, and the old content is kept as a previous version, the quota must have room for the whole new file, not only for the difference in size. In a folder that another user shared with you, this is the quota of the owner.
Previous versions and the trash
When you move a file to the trash, its previous versions go with it. When you delete a folder, the previous versions of the files inside it go with the folder. You cannot open the previous versions of a file while it is in the trash.
- When you restore the file, its previous versions come back with it.
- When the file is deleted for good, with
Delete forever,Empty trashorPermanent deletion, its previous versions are deleted too.
See The trash.
Who can see, restore and delete versions
- To see the list, and to preview and download a version, you need to be able to download the file.
Your account needs
User can view and download files. See Viewing and downloading files. - To restore a version, you also need
User can edit existing files. See Editing files. - To delete a version, you need
User can edit existing filesandUser can delete files. See Deleting files. - While another user holds a lock on the file, you cannot restore or delete its versions. See Locking files.
The window shows Restore only when you can restore a version of the file, and Delete only when
you can delete one. Your account, the account of the owner, the role of the share and a lock all
count, as this section describes.
The desktop sync app and the mobile apps do not show previous versions. Use the web interface. See Desktop sync and Mobile apps.
Files shared with you
A file has one list of versions, the same for every user who can open the file. Modified by can
show the names of other users.
In a folder that another user shared with you, the account of the owner needs the same permissions as yours, and the role of the share must allow the action:
Viewerand the higher roles can see, preview and download the versions.Uploadercannot.Editor,ContributorandContent managercan restore a version.- Only
Content managercan delete a version.
See Permissions and shared files and Sharing files and folders.
Files in a shared drive
In a shared drive, the same rules apply to the roles of the members. Manager can also restore and
delete versions. In a read-only drive, nobody can restore or delete a version. See
What each role allows and
Read-only drives.