Add exclude option to find_duplicate_pictures.sh

This commit is contained in:
2026-08-28 17:55:20 +03:00
parent 7ad8ca8e75
commit 81c2a81c7d
2 changed files with 58 additions and 4 deletions
+13
View File
@@ -32,6 +32,9 @@ three independent checks:
# Scan specific roots
./find_duplicate_pictures.sh /home/user/Pictures /mnt/backup
# Scan a collection while skipping cache and export directories
./find_duplicate_pictures.sh --exclude ~/Pictures/Cache --exclude ~/Pictures/Exports ~/Pictures
# Scan the whole filesystem (default when no arguments given)
./find_duplicate_pictures.sh
@@ -50,6 +53,16 @@ chmod +x find_duplicate_pictures.sh
| `FOLLOW_LINKS` | `0` (off) | Set to `1` to follow symlinks while scanning |
| `REPORT` | *(none)* | Path to a file where the full report is also saved |
### Directory exclusions
Use `-x DIR` or `--exclude DIR` to skip a directory and all of its contents.
The option may be repeated and accepts paths containing spaces. Relative paths
are supported for both scan roots and exclusions.
```bash
./find_duplicate_pictures.sh -x ~/Pictures/Cache -x ~/Pictures/Exports ~/Pictures
```
### Examples
```bash