-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add --include --exclude to --restore, --copyfrom #76
Comments
I agree then!
|
Understand, but the data that might be of concern is still in the actual filesystem metadata so I don't really see a privacy concern if the same data is in the backup. You could use That said, if you really wanted to strip a key from the backup file you could do something like the following. For example, if your Finder comment contained sensitive information:
The above command deletes the key The issue with excluding keys from the backup is that the user could change their mind later and be in a place where they had lost the ability to restore important data. |
As long as the .osxmeta files sits on the APFS volume were it got created then that metadata is still in the metadata of the corresponding APFS files yes. But if you copy those files plus the .osxmeta to a NAS which does not support/carry-on the same metadata or where it gets stripped on purpose (e.g. individual's comments on files get stripped, from then on commented collaboratively) then this would be a concern. But it's far fetched. And you laid out tools/workflows how to remove. It is just that usually its easiest "leaving out stuff" during creation rather than "operating it out later". But as already written initially, in doubt --backup shall contain all. |
Thinking about how to do this: |
100% agree. |
I don't think adding these to
--backup
is a good idea but it makes sense to add them to--copyfrom
and--restore
The plethora of Mac timestamps really tell you a lot and are so useful. Would be worthy to have them in
--backup
,--restore
and also in--copyfrom
. I am glad you recognize the backup value of this too.The permissions matter a bit less for general purposes, but matter in some use cases (restoring software directories, or shared directories).
For all use cases (
--backup
,--restore
,--copyfrom
(possibly in combo with paste and xargs) ) you may want to be able to set that not ALL attributes are included but only a certain subset:--backup
--restore
or--copyfrom
side you request certain attributes which were not included in the --backup. So in doubt --backup shall not have that attribute filtering capabilities.--restore
: Likely that you want only certain attributes to be restored (e.g. comments) or certain attributes NOT restored on purpose (e.g. the modification date shall be now, to have an indication of the restoration).--copyfrom
: Even more likely that you want to use that very specifically.So the companion parameter originally suggested as
--copy
should have a more general name if it can be used together with--restore
,--copyfrom
and potentially also--backup
. I propose--include
and--exclude
. That way you must not work in an enumerate fashion. But can say "all but A,B" or "only X,Y".Originally posted by @porg in #71 (comment)
The text was updated successfully, but these errors were encountered: