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

Finder tags and file creation/modification date not preserved in macOS #42

Closed
nullpointerninja opened this issue Mar 7, 2021 · 7 comments
Labels
question Further information is requested

Comments

@nullpointerninja
Copy link

I tested a backup and restore operation with a Local Directory target on macOS 11.2.2.
The restored files don't keep the file creation and modification dates, and any finder tags (colors) are lost. Is this expected, or is it a bug?
This was tested with a simple text file with different creation and modification dates, with a couple of Finder tags. I can provide more information and/or screenshots if needed.

@bimbashrestha
Copy link
Member

bimbashrestha commented Mar 11, 2021

@nullpointerninja thanks for asking and welcome to the project!

The restored files don't keep the file creation and modification dates, and any finder tags (colors) are lost. Is this expected, or is it a bug?

The only metadata that is preserved is file modified time at the moment. So yes this is expected. It's not ideal but the initial data format doesn't have support for other metadata.

@bimbashrestha bimbashrestha added the question Further information is requested label Mar 11, 2021
@bimbashrestha
Copy link
Member

Hey @nullpointerninja I just re-read your post. Didn't realize that you weren't seeing modified time on the restored files. Can you confirm this is so? Because that part is unexpected. Modified times should be backed up and restored.

@nullpointerninja
Copy link
Author

nullpointerninja commented Mar 13, 2021

Yes, the file modification and creation times as seen from the Finder file info dialog show the restore time instead of the original modify date. This is true for both files and folders that are restored. Just tested with v1.0.0.beta2.

@bimbashrestha
Copy link
Member

Hmm strange. I'll look into this soon

@bimbashrestha
Copy link
Member

Ah actually this makes sense. You are testing using one of the pre packaged releases. Two weeks ago I merged a PR that preserves restore time and that hasn't made it to a release yet.

Perhaps you could give the dev branch a try with pip? The instructions are on the main README. Thanks

@nullpointerninja
Copy link
Author

Tried to install with pip but got many errors and couldn't find the root cause :(.
Will try the next packaged release and report back. Would be nice to have creation dates and finder tags supported in the future though.
Thanks!

@bimbashrestha
Copy link
Member

Sounds good! Thanks for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants