Synchronize directories duplicate source

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Galizza
Senior Member
Senior Member
Posts: 210
Joined: 2018-09-07, 05:21 UTC

Synchronize directories duplicate source

Post by *Galizza »

 
Hi, i'd like to know if is it possible using an em_command or SYNCOPEN to synchronize
two directories making an exact copy of source panel on target panel.

So unique, newer and modified files on source panel should be copied to target panel
and not existing files on source panel should be deleted on target panel

Right now i use Robocopy with parameters /E /IT /PURGE and i can syncronize two
directories pressing one button on buttonbar, but i would like to know if it is possible
to do the same on Total with an em_command or SYNCOPEN, thank you very much :!:
 
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Re: Synchronize directories duplicate source

Post by *Gral »

Use "Asymmetric" mode

From help

Code: Select all

Asymmetric If this option is checked, it is assumed that a copy of the left side should be created on the right side.
Files which do not exist on the left side will be marked for deletion on the right side.
This option is meant for backups. Do NOT use this option to synchronize a desktop and notebook!
Last edited by Gral on 2022-02-23, 17:58 UTC, edited 1 time in total.
User avatar
Dalai
Power Member
Power Member
Posts: 10022
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Synchronize directories duplicate source

Post by *Dalai »

TC's directory synchronization feature supports a so-called asymmetric synchronzation, meaning the left side is the source and the right side is the destination, which is basically exactly what you're asking. See also TC's help for more details (press F1 when the sync window is open). After having saved the sync profile under a name, you can call it with SYNCOPEN <name_of_profile>.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Galizza
Senior Member
Senior Member
Posts: 210
Joined: 2018-09-07, 05:21 UTC

Re: Synchronize directories duplicate source

Post by *Galizza »

 
Thanks both for you help, but when i use asymmetric synchronzation i must synchronize twice, first time i do not mark any file on source and synchronize both directories so no existing files on source are deleted on target, and a second time when i mark all the files on the left panel to copy them to the right.

If i try to do it on a single step and i mark all the files on the left panel and select for copy to the right panel, no existing files on source will not be deleted on target because after selecting for copy to the left they appear unmarked, what i want is to acomplish the synchronization with less steps as possible even better pressing only a button on buttonbar, thanks again :!: :!:
Last edited by Galizza on 2022-02-23, 19:15 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Synchronize directories duplicate source

Post by *Horst.Epp »

There is no need for 2 passes and also you don't need to select any files
for an asymetric sync.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
Galizza
Senior Member
Senior Member
Posts: 210
Joined: 2018-09-07, 05:21 UTC

Re: Synchronize directories duplicate source

Post by *Galizza »

Thanks Horst.Epp I must be doing something wrong because i can't do it in 1 pass

Let me explain what i do step by step, i have two directories with multiple subdirectories and
exactly the same path structure in both

I open synchronize mode and i mark Asymmetric, Subdirs, by content and ignore date
Then i compare them but after compare i realize that many files appear on red color and if i do not select them for copy to the right panel will not be copied when i press synchronize, thanks
User avatar
Dalai
Power Member
Power Member
Posts: 10022
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Synchronize directories duplicate source

Post by *Dalai »

It's all explained in TC's help. But to add to that, if the comparison ignores the date, it's up to the user to decide what to do with such files because TC can't know which one to keep if you tell it to ignore the date, even in asymmetric mode. This is even more true when you tell TC to make the comparison based on contents alone. Asymmetric sync is best used without comparison by contents and probably also without ignoring the date.

As I said above, asymmetric mode assumes the source on the left panel. When not ignoring the date and if the comparison is not done by contents, it just copies left to right and deletes additional and renamed files on the right side. Just try it for yourself and play around a bit.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Galizza
Senior Member
Senior Member
Posts: 210
Joined: 2018-09-07, 05:21 UTC

Re: Synchronize directories duplicate source

Post by *Galizza »

Thanks Dalay, I've tried your settings and now it works well, best regards.
Post Reply