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

Feature request: Possibility to exclude items marked as deleted #36

Open
Boulder08 opened this issue May 5, 2018 · 1 comment
Open

Comments

@Boulder08
Copy link

I have a 3TB drive that I'm currently recovering files from. I can get the list of files nice and easy with the analysis pass so it would be easy to just use restore x 5 and restore x -1 to recover everything. However, it seems that some previously deleted files (marked as deleted in the csv output) are being recovered as well, and this means that I run out of disk space if I use the simple route (I don't have a 4TB drive to recover to).

In my case, I don't need those deleted files as they are either from the Windows Recycle Bin or directly deleted by me or some program. It would be nice if I could use a parameter to skip the deleted files or maybe skip files and/or directories by name using a wildcard.

@Lazza
Copy link
Owner

Lazza commented May 5, 2018

Yes, as I have discussed before the CLI interface needs a revamp. It is currently basic and a bit messy while the reconstruction code is pretty solid and tested.

In the meanwhile you might want to add an extra if condition to recursive_restore which is inside logic.py. Something like this as the first line of the function should do what you want:

if node.is_ghost or node.is_deleted: return

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