Skip to content

Commit

Permalink
cases: enable (protected) symlinks for shared dev config
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed May 11, 2021
1 parent 36da40d commit 0222a80
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions content/docs/use-cases/shared-development-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,19 @@ your <abbr>project</abbr>:
$ dvc cache dir /home/shared/dvc-cache
```

And tell DVC to set group permissions on newly created or downloaded cache
files:
Let's do a few important configurations:

```dvc
$ dvc config cache.shared group
$ dvc config cache.type "reflink,symlink,hardlink,copy"
$ dvc config cache.protected true
```

First we tells DVC to set group permissions on new cache files. Then we enable
soft and hard links (you limit to one or the other) to avoid copying from the
external cache to the <abbr>workspace</abbr>. Finally we must "protect" the
symlinked data in our project to avoid corrupting the cache.

> See `dvc cache dir` and `dvc config cache` for more information.
If you're using Git, commit changes to your project's config file (`.dvc/config`
Expand Down

0 comments on commit 0222a80

Please sign in to comment.