TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
4.91k stars 176 forks source link

How do I exclude files to encrypt when trying to encrypt an entire path? #457

Closed NovaViper closed 10 months ago

NovaViper commented 1 year ago

This question is about

Describe your question

Hey I'm wondering if it's possible to tell yadm to exclude files from a path that will be encrypted? Say for instance, I want to encrypt the entire libreoffice user data directory but want to exclude specific files and folders (like how I would with the gitignore file). Is this sort of thing possible with the encryption command? Thanks

TheLocehiliosan commented 1 year ago

Assuming that you are using a $HOME/.config/yadm/encrypt file (not transcrypt or git-crypt):

It should work to add excluded paths to the $HOME/.config/yadm/encrypt file itself. Preface those paths with a !. For example:

path/to/libreoffice/**
!path/to/libreoffice/path/dir_to_exclude
!path/to/libreoffice/path/file_to_exclude

If this isn't working for you, post a more specific example, and I might be able to work out the issue.

github-actions[bot] commented 10 months ago

This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 10 months ago

This issue was closed because it has been labeled as stale for 7 days with no activity.