-
Notifications
You must be signed in to change notification settings - Fork 256
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
Feature Request: --include / --include-from #235
Comments
Hi! Thanks for the report - what version do you run and how much worse is "much worse"? |
I don't have some exact numbers, but I have the impression that it's related to directories with many small files. I will do some testing with this and report back. |
The version was 1.4.3, but I couldn't reproduce any performance shortcomings compared to encfs. Probably I just got the impression after the replacement of encfs, but there isn't any real issue here. |
Lately I switched to reverse mode for better performance with remote syncing. An "exclude-from" command would come in here very handy, too. This could save some time to avoid syncing cache folders or VMs that I don't need backup for. |
Might I suggest bind mounts to map the directories you want to exclude through from the underlying storage? |
How would you do an exclude with bind mount? I'm using https://github.com/gburca/rofs-filtered for now. |
|
@charles-dyfis-net: interesting idea! I think brain-freeze wanted to not copy files at all, not only not encrypt them. I guess you could bind mount an empty folder over the folder you want to exclude? |
The --include-from/--exclude-from feature of rsync is crucial for my backup purposes. With reverse mode of gocryptfs it's not possible to use this anymore, because the file/folder names are encrypted as well. The only possibilities to overcome this, which are working with folders and files aswell, are (afaik):
|
Option number 3 is to get the encrypted file names by searching for the inode number ( But i agree that |
PS: This is how the backintime backup tool handles exclusions with encfs reverse mode. |
PPS: looks like cobra is the cli library of choice nowadays. |
Personally I think that |
I have just added an I have chosen
With exclude.txt containing lines like this:
|
Thanks, works nicely. The performance is better since there is no rofs-filtered anymore. I will use this:
|
Thanks for testing! I'll call this ticket done. |
The above code cannot possibly work. See BashFAQ #50: Quotes in the result of command substitutions or other expansions are treated as literal, not parsed by the shell as syntax. Consequently, the quotes added to the Quotes inside A variant that would work (using an array to collect the arguments, rather than collecting them in a string and expanding it unquoted) follows:
...or, to support baseline POSIX sh (which doesn't support arrays), one can use a function to be able to override its argument list without making changes to the outer scope:
...will prepend the |
Heh. Actually, I'm going to have to withdraw that "cannot possibly work", a little: The quotes are all syntactic, not literal, in
Basically, you have a quoted string A line with What's even more fun is that if you were trying to exclude a directory named |
Hey,
I switched to gocryptfs from encfs and it works great so far. However the performance over sshfs is much worse than it was with encfs (and #35 is still a problem). So I thought reverse mode may be the better idea for backup use cases anyways. The problem here is a missing --include/--include-from option, which works just like the parameter for rsync. This would allow it to create an encrypted view of certain folders instead of an entire directory.
The text was updated successfully, but these errors were encountered: