Compare and Sync

Discuss and share scripts and script files...
Post Reply
arirish
Posts: 93
Joined: 13 May 2008 13:52

Compare and Sync

Post by arirish »

I've had a quick browse of the Script forum and didn't find anything quite like this. If something does already exist and I've overlooked it, please point me in the right direction!

Basically what I'm looking for is a toolbar button which, when clicked, will compare a given folder on my hard drive with a given folder on an external drive and, if it turns up any files on the former that are not on the latter, copies them over (possibly checking to make sure there's enough space first).

Thanks in advance for any help/tips/etc.

RalphM
Posts: 2089
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Compare and Sync

Post by RalphM »

Isn't that what the command "backupto" already does?
(apart from checking whether there's enough space left)
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

arirish
Posts: 93
Joined: 13 May 2008 13:52

Re: Compare and Sync

Post by arirish »

Backup To works for part of it, but I just realised there's another part of the operation: deleting files in the destination folder that don't exist in the source folder (that is, I want both folders identical).

JimXYUser
Posts: 23
Joined: 23 Nov 2012 00:26

Re: Compare and Sync

Post by JimXYUser »

i don't see XYplorer has that tool yet, may be you should look at a free tool from Microsoft call SyncToy, here is the link

http://www.microsoft.com/en-us/download ... x?id=15155

it's a very easy sync tool n will also delete, rename, files if found different.

after installing the above tool you can also add a button in XYplorer to call it directly inside XYplorer, that is, if you wanted to.

admin
Site Admin
Posts: 66312
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Compare and Sync

Post by admin »

the_hyrax_lord wrote:Backup To works for part of it, but I just realised there's another part of the operation: deleting files in the destination folder that don't exist in the source folder (that is, I want both folders identical).
The Sync Select command in menu Panes can be used for selecting the files that don't exist in the source folder. Then you press DEL.

A one-click sync operation is not yet available but planned.

arirish
Posts: 93
Joined: 13 May 2008 13:52

Re: Compare and Sync

Post by arirish »

admin wrote:The Sync Select command in menu Panes can be used for selecting the files that don't exist in the source folder. Then you press DEL.
Excellent. Now I just have to put this all together in a script and apply it to a button...
admin wrote:A one-click sync operation is not yet available but planned.
Or I could just wait for this.

Post Reply