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

--include in reverse mode #588

Closed
jcbedacuk opened this issue Jul 30, 2021 · 3 comments
Closed

--include in reverse mode #588

jcbedacuk opened this issue Jul 30, 2021 · 3 comments

Comments

@jcbedacuk
Copy link

I would like to use reverse mode to present an encrypted view (for backup) of only a few directories in my home directory. As far as I see, gocryptfs only offers --exclude. Is there any chance of rsync style general include/exclude options?

@rfjakob
Copy link
Owner

rfjakob commented Aug 18, 2021

This may be already possible with --exclude-wildcard, as it uses gitignore syntax, and gitignore syntax supports negated matches with "!" ( https://git-scm.com/docs/gitignore#_pattern_format ). Let me check.

@rfjakob
Copy link
Owner

rfjakob commented Aug 18, 2021

It was not possible due to a bug, now fixed. Works like this: First exclude everything then include the folder "important":

gocryptfs -reverse -exclude-wildcard '*' -exclude-wildcard '!/important' /home/user /mnt/user.encrypted

@jcbedacuk
Copy link
Author

Thanks!

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