deduplicate with rdfind

This commit is contained in:
Malin Freeborn 2024-08-07 18:03:53 +02:00
parent d4c4463f70
commit 377a85c2b0
Signed by: andonome
GPG Key ID: 52295D2377F4D70F

19
system/deduplicate.md Normal file
View File

@ -0,0 +1,19 @@
---
title: "deduplicate"
tags: [ "system", "deduplicate", "duplicates", "maintenance" ]
---
`rdfind`: find duplicate files, then delete them, or turn them into links.
Ask if a directory has duplicates (`rdfind` will not delete anything):
```bash
rdfind $dir
$EDITOR results.txt
```
Replace the duplicated files with [hard links](../basics/hard_links.md).
```bash
rdfind -makehardlinks true $dir
```