Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2023 22:23:26 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Kaya Saman <kayasaman@optiplex-networks.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Tool to compare directories and delete duplicate files from one directory
Message-ID:  <20230504222326.6bba6e1d.freebsd@edvax.de>
In-Reply-To: <9887a438-95e7-87cc-a162-4ad7a70d744f@optiplex-networks.com>
References:  <9887a438-95e7-87cc-a162-4ad7a70d744f@optiplex-networks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230504222326.6bba6e1d.freebsd>