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

Add fdupes command #30

Open
iemejia opened this issue Mar 3, 2013 · 3 comments
Open

Add fdupes command #30

iemejia opened this issue Mar 3, 2013 · 3 comments
Labels

Comments

@iemejia
Copy link
Owner

iemejia commented Mar 3, 2013

Based on the idea of:
https://github.com/seabre/finddupes/blob/master/finddupes.sh
SELECT hash, location FROM files WHERE hash NOT IN (SELECT hash FROM files GROUP BY hash HAVING ( COUNT(hash) = 1 )

@iemejia
Copy link
Owner Author

iemejia commented Mar 3, 2013

or fdupes https://code.google.com/p/fdupes/

@iemejia
Copy link
Owner Author

iemejia commented Mar 3, 2013

what to do with hardlinks ?
--gen-rm-script catalog: to generete a script to remove the dupes in the specific catalog

@iemejia
Copy link
Owner Author

iemejia commented Mar 3, 2013

The query is:
SELECT hash, path, name FROM catalog WHERE hash NOT IN (SELECT hash FROM catalog GROUP BY hash HAVING ( COUNT(hash) = 1 )) order by hash;

@iemejia iemejia closed this as completed Mar 4, 2013
@iemejia iemejia reopened this Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant