Page 1 of 2

Sync folders more options

Posted: 12 Sep 2022 12:48
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

Re: Sync folders more options

Posted: 17 Sep 2022 18:08
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

Re: Sync folders more options

Posted: 20 Sep 2022 16:00
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

Re: Sync folders more options

Posted: 21 Sep 2022 17:53
by admin
Find Text:
2022-09-21_175026.png
2022-09-21_175026.png (34.27 KiB) Viewed 4022 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.

Re: Sync folders more options

Posted: 26 Sep 2022 18:30
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

Re: Sync folders more options

Posted: 26 Sep 2022 18:32
by admin
Using the current version?

Re: Sync folders more options

Posted: 27 Sep 2022 09:28
by mussor
yep 23.70

Re: Sync folders more options

Posted: 27 Sep 2022 09:59
by admin
Click in the text box to give it focus, then press Ctrl+F.

Re: Sync folders more options

Posted: 27 Sep 2022 10:57
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.

Re: Sync folders more options

Posted: 27 Sep 2022 13:25
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.

Re: Sync folders more options

Posted: 27 Sep 2022 13:47
by admin
Can't explain. :|

Re: Sync folders more options

Posted: 29 Sep 2022 09:39
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! :)

Re: Sync folders more options

Posted: 28 Nov 2022 20:54
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?

Re: Sync folders more options

Posted: 01 Dec 2022 07:47
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)

Re: Sync folders more options

Posted: 01 Dec 2022 09:04
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.