adrianlopezroche / fdupes

FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
2.46k stars 187 forks source link

Feature request: delete file then make symlink or hardlink to reference file #66

Closed icve closed 7 years ago

icve commented 7 years ago

I would love an option to delete file then make symlink to reference file. For example, /some/dir/file1 /some/dir/file2

fdupes -d --symlinkfirst /some/dir

/some/dir/file1 /some/dir/file2 > /some/dir/file1

And option to move all first duplicated files to a directory then point symlinks to the files in the directory, For example: /some/dir/file1 /some/dir/file2 fdupes --refdir=/some/ref_dir /some/dir /some/ref_dir/file1 /some/dir/file1 > /some/ref_dir/file1 /some/dir/file2 > /some/ref_dir/file1

icve commented 7 years ago

Thanks, I would love to see how it can be done in script.