Synchronize 2 folders

Features wanted...
xyplorerköln
Posts: 177
Joined: 01 Jan 2016 18:59

Re: Synchronize 2 folders

Post by xyplorerköln »

That is excellent.

xyplorerköln
Posts: 177
Joined: 01 Jan 2016 18:59

Re: Synchronize 2 folders

Post by xyplorerköln »

Sorry to bump. I just wanted to see if there was a rough sense of timeline on integration of this feature (≈6 months, ≈year, ≈10 years, decades, etc.).

A couple scenarios have emerged where I need to provision if a solution isn't in the shorter-term horizon.

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

Re: Synchronize 2 folders

Post by admin »

6 months

Sebbel
Posts: 12
Joined: 29 Jul 2014 14:53
Location: Germany

Re: Synchronize 2 folders

Post by Sebbel »

Any news on this?

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

Re: Synchronize 2 folders

Post by admin »

This will be a nice activity for the winter...

Sebbel
Posts: 12
Joined: 29 Jul 2014 14:53
Location: Germany

Re: Synchronize 2 folders

Post by Sebbel »

Ok. Have fun. :mrgreen:

Thank you!

hari3
Posts: 225
Joined: 25 Sep 2016 13:57
Location: win 10,64 bit

Re: Synchronize 2 folders

Post by hari3 »

@don -- Do you mean that this feature will come in winter of this year ?

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

Re: Synchronize 2 folders

Post by admin »

Yes.

xyplorerköln
Posts: 177
Joined: 01 Jan 2016 18:59

Re: Synchronize 2 folders

Post by xyplorerköln »

Really looking forward to this feature!

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

Re: Synchronize 2 folders

Post by admin »

Reread the thread. Found it over-complicated. I think XY should do a very simple basic synchronize, easy to understand, easy to do.

Code: Select all

State before sync: Folder1: ABC | Folder2: CD
             Sync: Folder1 > Folder2
State after sync:  Folder1: ABC | Folder2: ABC
Tactically that would include the following steps:
1) Delete all items in Folder2 that are missing in Folder1 (permanently, no recycler, no questions)
2) Copy all items from Folder1 to Folder2 that are missing in Folder2
3) Copy all items from Folder1 to Folder2 that are different in Folder2 (i.e. overwrite them, w/o questions)

What do you think?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Synchronize 2 folders

Post by highend »

What you describe is a one-way sync. So you don't plan a two-way sync (e.g. folder B has items that only exist there -> copy them over to A)?
One of my scripts helped you out? Please donate via Paypal

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

Re: Synchronize 2 folders

Post by admin »

OK, here an improved way of describing it:

Code: Select all

One way:
State before sync: Folder1: ABC | Folder2: CD
             Sync: Folder1 > Folder2
State after sync:  Folder1: ABC | Folder2: ABC

Two way:
State before sync: Folder1: ABC | Folder2: CD
             Sync: Folder1 <> Folder2
State after sync:  Folder1: ABCD | Folder2: ABCD
My question about "two-way" is this: In which direction is "C" overwritten?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Synchronize 2 folders

Post by highend »

That (should) depend on user selection.
Normally it's the last modified time (newer files overwrite older ones).
But specialized sync software have a lot of other options (file size, hash, attributes, don't overwrite older files with (newer) empty ones), etc.

My opinion:
At least times should be selectable (last modified, created, maybe last accessed)
Everything else is (maybe) too advanced for the normal user anyway
One of my scripts helped you out? Please donate via Paypal

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

Re: Synchronize 2 folders

Post by admin »

OK, so also in one-way sync we could have either of these (depending on user settings) rules:

3) Copy all items from Folder1 to Folder2 that are different in Folder2 (i.e. overwrite them, w/o questions)

3) Copy all items from Folder1 to Folder2 that are different and older in Folder2 (i.e. overwrite them, w/o questions)

3) ... even more rules ...

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Synchronize 2 folders

Post by highend »

I think for a one-way sync this wouldn't be necessary.

1. Delete all files & folders in <destination> that do not exist in <source>
2. Copy over all files from <source> to <destination> that don't exist in <destination> yet
3. Overwrite all files in <destination> that are different from their counterpart in <source> (by time / size)

In this case I see no need for user selectable options
One of my scripts helped you out? Please donate via Paypal

Post Reply