Skip to content

Commit

Permalink
Add info for custom versioning Mountain Duck
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassie205 committed Jun 28, 2024
1 parent 849c535 commit 0ef7658
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions mountainduck/versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,43 @@ Permanently delete a previous version of the selected file.
### Preview

This will open a *Quick Look preview* on macOS or open the previous version of the file in the default application on Windows.

## Custom versioning

Enable the custom versioning option in *Preferences → Versions* to store previous versions of a file for protocols without native versioning. The versions can be previewed, deleted or restored in *Info → Versions*.

Select you preferred handling in case of sync conflicts with earlier changes. Choose between *Rename existing* and *Overwrite*.

```{image} _images/Preferences_Versions_macOS.png
:alt: Preferences Versions (macOS)
:width: 400px
```

Alternatively, use the corresponding option in the bookmark configuration to enable or disable versioning for specific connections only.

```{image} _images/Bookmark_Versions_macOS.png
:alt: Bookmark Versioning
:width: 400px
```

The versions are stored in a hidden folder named `.duckversions` in each folder on the mount. The versions are named like the following pattern: `filename.extension → filename-20230906102017.762.extension`

### Versions while transferring

Versioning for [overwriting](transfer.md#overwrite-prompt) existing files while uploading can be enabled by using a [hidden configuration option](preferences.md#hidden-configuration-options).

versioning.enable=true

### Exclude files

To excluded files or file types from versioning use a [hidden configuration option](preferences.md#hidden-configuration-options).

versioning.include.regex=.*

### Number of saved versions

Per default, the number of saved versions is limited to 5. The oldest version will be deleted once a new version is uploaded exceeding the limit.

The number of saved verions can be customized by using a [hidden configuration option](preferences.md#hidden-configuration-options).

versioning.limit=5

0 comments on commit 0ef7658

Please sign in to comment.