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

group output according to order on command line #263

Open
adrium opened this issue Apr 15, 2024 · 0 comments
Open

group output according to order on command line #263

adrium opened this issue Apr 15, 2024 · 0 comments

Comments

@adrium
Copy link

adrium commented Apr 15, 2024

The tool rdfind gives a higher priority to keep files according to the order on the command line. This is very useful to remove duplicates in decades old and unstructured manual backup folders. Consider the following folders with Pictures containing roughly the same files:

  1. Data/Pictures
  2. Backup-2024/Pictures
  3. Backup-2022/Pictures
  4. Drive-D/Data/Pictures
  5. Data/OldBackups/Drive-D/Data/Pictures

Imagine the above list is sorted by most recent files.

  • Files in directory 1 should be kept and removed from the other folders.
  • If a file only is in directories 2 and 3, it should be kept in 2 only.
  • For prior duplicate removal within only directory 1, for example --priority least-nested could be used.

From my understanding of experimenting with fclones (with dry-run) with a structure similar to the above, the output of the group command would have to be sorted. However, this does not seem to be the case currently.

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

No branches or pull requests

1 participant