Add exclude option to find_duplicate_pictures.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user