using rsync to delete copied files
edacval at gmail.com
Sat Nov 6 05:35:01 MDT 2010
On Fri, 5 Nov 2010 23:48:21 -0600
LuKreme <kremels at kreme.com> wrote:
> OK, I have DIR1 which contains several thousand files. I have DIR2
> that mostly the same files.
> I want to delete all the files in DIR1 that exist in DIR2. I don't
> want to sync them, I don't want any new files in DIR2.
> I can't get my head around if this is doable with rsync.
rsync -a -vv -i -W --remove-source-files dir1/ dir2/
More information about the rsync