rmlint: include some more advanced flags (#15380)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
Janek
2025-02-02 23:28:08 +01:00
committed by GitHub
parent 4ee08cf68d
commit e108592c44
+7 -7
View File
@@ -7,9 +7,9 @@
`rmlint {{path/to/directory1 path/to/directory2 ...}}`
- Check for space wasters, preferably keeping files in tagged directories (after the double slash):
- Check for duplicates bigger than a specific size, preferably keeping files in tagged directories (after the double slash):
`rmlint {{path/to/directory}} // {{path/to/original_directory}}`
`rmlint -s {{1MB}} {{path/to/directory}} // {{path/to/original_directory}}`
- Check for space wasters, keeping everything in the untagged directories:
@@ -19,7 +19,7 @@
`./rmlint.sh`
- Find duplicate directory trees:
- Find duplicate directory trees based on data, ignoring names:
`rmlint --merge-directories {{path/to/directory}}`
@@ -27,10 +27,10 @@
`rmlint --rank-by={{dl}} {{path/to/directory}}`
- Find only duplicates that have the same filename in addition to the same contents:
- Find files with identical filename and contents, and link rather than delete the duplicates:
`rmlint --match-basename {{path/to/directory}}`
`rmlint -c sh:link --match-basename {{path/to/directory}}`
- Find only duplicates that have the same extension in addition to the same contents:
- Use `data` as master directory. Find only duplicates in backup that are also in `data`. Do not delete any files in `data`:
`rmlint --match-extension {{path/to/directory}}`
`rmlint {{path/to/backup}} // {{path/to/data}} --keep-all-tagged --must-match-tagged`