Re: Tool to compare directories and delete duplicate files from one directory
- In reply to: Kaya Saman : "Tool to compare directories and delete duplicate files from one directory"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 May 2023 20:23:26 UTC
On Thu, 4 May 2023 16:53:10 +0100, Kaya Saman wrote: > I'm wondering if anyone knows of a tool like diff or so that can also > delete files based on name and size from either left/right or > source/destination directory? > > [...] > > The issue I am facing mainly is that I perform another rsync and use the > --remove-source-files option, rsync will delete files based on name > while there are some files that have the same name but not same size and > I would like to retain these files. If I remember correctly, cpdup does actually have that specific feature. You'll find it in the pkgs or in the ports collection; see "man cpdup" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...