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 authored and dkocher committed Sep 27, 2024
1 parent 4fed377 commit fa9f2b1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions mountainduck/versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,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: 600px
```

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

```{image} _images/Bookmark_Versioning_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 fa9f2b1

Please sign in to comment.