Create button for synchronizing two directories?

I can bring up a saved lister layout with source and target directories, and then use the synchronize tool to mirror the source directory.

Is it possible to create Dopus button that executes the same actions? I'm looking for the most efficient way to mirror the source, i.e., the least amount of mouse click since its something I do often.

Thank-you.

You can't automate the Synchronize tool in the current version but the Copy UpdateAll or Copy UpdateExisting commands may do what you want.

The commands are more limited than the Sync tool so they may not be applicable. To see what they can do, refer to the Copy - Raw Command page, under Opus Raw Commands, in the manual.

Ok, got that - Synchronise cannot be automated.

Copy UpdateAll - updates or creates files in target but does not delete files in target that no longer exist in source.

Copy UpdateExisting is a weaker version of Copy UpdateAll.

So, would there be by some great stroke of fortune, a command that did both Copy UpdateAll and delete target files that no longer exist in source dir? Would there be two commands that did either? Would I be out of luck?

The idea is to mirror the source directory.

Thanks.

I can't think of a way to automate it using internal commands, unless there are no subdirectories to worry about.

You could create a automated button which runs an external command such as RoboCopy (comes with Windows these days), though. RoboCopy's /PURGE option looks like it does what you want and it's pretty comprehensive and all command-line driven.

Automation of the full Sync tool in Opus is already on the feature request list, BTW.