Synchronize 2 folders
-
- Posts: 177
- Joined: 01 Jan 2016 18:59
Re: Synchronize 2 folders
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.
A couple scenarios have emerged where I need to provision if a solution isn't in the shorter-term horizon.
Re: Synchronize 2 folders
Any news on this?
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Synchronize 2 folders
This will be a nice activity for the winter...
FAQ | XY News RSS | XY Twitter
Re: Synchronize 2 folders
Ok. Have fun.
Thank you!
Thank you!
Re: Synchronize 2 folders
@don -- Do you mean that this feature will come in winter of this year ?
-
- Posts: 177
- Joined: 01 Jan 2016 18:59
Re: Synchronize 2 folders
Really looking forward to this feature!
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Synchronize 2 folders
Reread the thread. Found it over-complicated. I think XY should do a very simple basic synchronize, easy to understand, easy to do.
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?
Code: Select all
State before sync: Folder1: ABC | Folder2: CD
Sync: Folder1 > Folder2
State after sync: Folder1: ABC | Folder2: ABC
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?
FAQ | XY News RSS | XY Twitter
Re: Synchronize 2 folders
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
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Synchronize 2 folders
OK, here an improved way of describing it:
My question about "two-way" is this: In which direction is "C" overwritten?
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
FAQ | XY News RSS | XY Twitter
Re: Synchronize 2 folders
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
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
-
- Site Admin
- Posts: 60357
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Synchronize 2 folders
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 ...
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 ...
FAQ | XY News RSS | XY Twitter
Re: Synchronize 2 folders
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
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