Sync folders more options

Features wanted...
mussor
Posts: 10
Joined: 05 Sep 2022 11:42

Sync folders more options

Post by mussor »

Hello,
recent buyer of lifetime licence here :) .. very satisfied all round

Things I'm missing in Sync Folder function:

1. exclude folders from sync (for example don't want to sync some folders with extra large files)

2. quicker report examination: opening reports to see just what files was overwritten is quite tedious process, Full report is not sorted in some way, like 1. over, 2. new, 3. skipped .. some quick text search in report window would do the work, or probably something more "graphical"


I was long time user of FreeCommander that has this feature little more user-friendly and does have a superb thing - "compare folders", so...
3. compare folders (files in it by one of these: name, size, date, checksum) - this is quite must have for me. Or is there a way to thoroughly and automatically compare two folders in panes?

Does it make sense for you?

Thank you much

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

Re: Sync folders more options

Post by admin »

Hi,

exclude: Check out the sync command in scripting. It offers a filter parameter to specify a list of patterns or full paths, separated by "|", used to include or exclude files or folders in/from the operation by name. Here, for example, I exclude the appdata\ folder when backing up my source code:

Code: Select all

sync "E:\XY\XYplorer.dev\code\", "I:\bup.snap\XY-code-<date yyyy>\<date yyyymmdd> (<xyver>)\", 1, 0, 0, "ckn", 7:="-appdata\";
report: Ctrl+F opens a Find Text dialog; F3 repeats the last search.

compare: Look at Panes | Sync Select..., it might get you a little closer.

Don

mussor
Posts: 10
Joined: 05 Sep 2022 11:42

Re: Sync folders more options

Post by mussor »

Thank you, Don.

report: Ctrl+F does nothing for me, no dialog pops up.

compare: I've discovered that earlier but it's "not hitting the nail in it's head" I think
- would love like to click one command that would compare the folders (and subfolders) instantly without me needing to dig through it; in the end simple report with different files would come up for example

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

Re: Sync folders more options

Post by admin »

Find Text:
2022-09-21_175026.png
2022-09-21_175026.png (34.27 KiB) Viewed 1534 times
Just saw that there might be a bug with the z-order of the windows, I'll check that.

Compare folders: Well, nothing better in the store ATM. Can be scripted though.

mussor
Posts: 10
Joined: 05 Sep 2022 11:42

Re: Sync folders more options

Post by mussor »

admin wrote: 21 Sep 2022 17:53 Find Text:
2022-09-21_175026.png

This is exactly what I do but no Find Text dialog pop-up in Sync Folder report

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

Re: Sync folders more options

Post by admin »

Using the current version?

mussor
Posts: 10
Joined: 05 Sep 2022 11:42

Re: Sync folders more options

Post by mussor »

yep 23.70
Last edited by mussor on 27 Sep 2022 09:29, edited 1 time in total.

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

Re: Sync folders more options

Post by admin »

Click in the text box to give it focus, then press Ctrl+F.

Horst
Posts: 1080
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Sync folders more options

Post by Horst »

I prefer a script which uses Beyond Compare or WinMerge.
The script is found here:
viewtopic.php?f=7&t=4420
I use the modified version "Execute Beyond Compare (version 1/28/2022)"
together with Beyond Compare.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3235)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

mussor
Posts: 10
Joined: 05 Sep 2022 11:42

Re: Sync folders more options

Post by mussor »

admin wrote: 27 Sep 2022 09:59 Click in the text box to give it focus, then press Ctrl+F.
Yes, I've tried both clicking the text box and then Ctrl+F and also not clicking it and Ctrl+F. Non of that did bring/pop-up Find Text dialog.

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

Re: Sync folders more options

Post by admin »

Can't explain. :|

mussor
Posts: 10
Joined: 05 Sep 2022 11:42

Re: Sync folders more options

Post by mussor »

Horst wrote: 27 Sep 2022 10:57 I prefer a script which uses Beyond Compare or WinMerge.
The script is found here:
viewtopic.php?f=7&t=4420
I use the modified version "Execute Beyond Compare (version 1/28/2022)"
together with Beyond Compare.
thank you for this! :)

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Sync folders more options

Post by Filehero »

admin wrote: 17 Sep 2022 18:08 Hexclude: Check out the sync command in scripting. It offers a filter parameter to specify a list of patterns or full paths, separated by "|", used to include or exclude files or folders in/from the operation by name. Here, for example, I exclude the appdata\ folder when backing up my source code:

Code: Select all

sync "E:\XY\XYplorer.dev\code\", "I:\bup.snap\XY-code-<date yyyy>\<date yyyymmdd> (<xyver>)\", 1, 0, 0, "ckn", 7:="-appdata\";
Overall goal: bi-directional sync of only a subset of a folder structure with smart deletions on the "way back".


Scenario

(Master) Source:
d:\aDir\A
d:\aDir\B
d:\aDir\C
d:\aDir\D

Target: w:


To stay unsynced: aDir\A, aDir\B\skip


The working "Forward": sync master source -> target:

Code: Select all

sync "d:\aDir", "w:", 1, 0, 4, "ckn", 7:="-d:\aDir\A\|-d:\aDir\B\exclSubdir";
This works, of course, fine.

Now, "simply" reversing the direction using "-r" as additional switch

Code: Select all

sync "d:\aDir", "w:", 1, 0, 4, "cknr", 7:="-d:\aDir\A\|-d:\aDir\B\exclSubdir";
doesn't work as d:\aDir\A\ or aDir\A\ and d:\aDir\B\exclSubdir or aDir\B\exclSubdir would get deleted which is unwanted this direction.


The sync manual does state:

- "All matching is done against source items, not target items." (1)
- ...
- "The filter also affects deletions in target, sync caps, preserve all item dates."
(2)

According to (1) the reverse deletion is expected, but what does (2) then mean?


Given the current sync implementation is there a way to accomplish my goal?

To complicate things further there's another, longer standing wish asking for the opposite. :whistle:


I don't think changing the existing semantic of the "+" and "-"-prefixes is an "easy" approach, neither is adding new bit field values to parameter delete_items.

But how about adding a new prefix "!" with the meaning of a global, direction-unaware ignore?

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

Re: Sync folders more options

Post by admin »

Hmm, complex. I did not spend too much time with it, but would an additional value for delete_items (bit field) help?
8 = On reverse direction (target > source) also reverse any filters (means: apply them to the target instead of to the source)

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Sync folders more options

Post by Filehero »

Thanks for consideration.

Citing you, it needs more thinking/rethinking on my side. ;-)

Since I'm really busy right now this can take some days.

Post Reply