Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 8 tasks
NovaViper opened this issue Jun 4, 2023 · 3 comments
Closed
1 of 8 tasks

Comments

@NovaViper
Copy link

NovaViper commented Jun 4, 2023

This question is about

  • Installation
  • Initializing / Cloning
  • Alternate files
  • Jinja templates
  • Encryption
  • Bootstrap
  • Hooks
  • Other

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
Copy link
Owner

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
Copy link

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 github-actions bot added the stale label Aug 12, 2023
@github-actions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants