From 3bb46fd34426a83c26aa9e77c1579085612944a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Wei=C3=9Fmann?= Date: Tue, 18 Sep 2018 11:45:31 +0200 Subject: [PATCH] rdfind: add page (#2337) --- pages/common/rdfind.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/rdfind.md diff --git a/pages/common/rdfind.md b/pages/common/rdfind.md new file mode 100644 index 0000000000..0fa6bf1a01 --- /dev/null +++ b/pages/common/rdfind.md @@ -0,0 +1,19 @@ +# rdfind + +> Finds duplicate files and gets rid of them. + +- Identify all duplicates in a given directory and outputs a summary: + +`rdfind -dryrun true {{path/to/directory}}` + +- Replace all duplicates with hardlinks: + +`rdfind -makehardlinks true {{path/to/directory}}` + +- Replace all duplicates with symlinks/soft links: + +`rdfind -makesymlinks true {{path/to/directory}}` + +- Delete all duplicates and do not ignore empty files: + +`rdfind -deleteduplicates true -ignoreempty false {{/mnt/backup}}`