files icon indicating copy to clipboard operation
files copied to clipboard

Rsync-like hash comparison for copy conflicts?

Open cassidyjames opened this issue 5 years ago • 1 comments

Rsync has a way to compare files and only copy if they are different. Would we be able to do something similar in Files? It would significantly speed up the case when copying large amounts of files between drives, i.e. for backups.

If a file hash isn't something we can compare, at least comparing modified date and size would get us most of the way there.

cassidyjames avatar Aug 14 '20 18:08 cassidyjames

Sounds like you are proposing to expand the mission of Files to include that of a backup manager (forwhich there are several GUI apps)? It would mean expanding the dependencies to include e.g. librsync and another plugin and it would be significant amount of code to implement a capable backup manager.

We already have the "Keep Newest" option in the file conflict dialog ( the "Apply to all" will be fixed).

I guess we may be able change the way copy/move works so that it compares files between src and dest before commencing work but that would be best done when file-operations are ported to Vala. This would only speed things up a lot if most of the files to be copy/moved endup being ignored.

jeremypw avatar Aug 15 '20 08:08 jeremypw