Synchronize dirs

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
oko
Senior Member
Senior Member
Posts: 250
Joined: 2007-05-03, 16:22 UTC

Synchronize dirs

Post by *oko »

i want to compare two dirs (not by content because very big). all different files (older) i want to copy to other dir (e.g. BACKUPDIR) first and then overwrite them by new actual files to have actual backup of folder. I noticed problems:

1. after comparing, there are files which are the same by size but different by time. these files are automaticaly marked to copying (green arrow) but i want them to be copied to "BACKUPDIR" but i can not filter them because they are mixed with green. according to me they would be marked as different (red "not equal") !! if would be thus i could filter all changes and backup them to BACKUPDIR.
There would be another solution to differ not equal files:
a) different by size (red "not equal" mark)
b) different by time but same by size (NEW fifth type e.g. red "crossed watch" mark)

2. i must do it all in two steps - first copy different to BACKUPDIR and after then overwrite. It is not so big problem only suggestion to add preference to backup in one step.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

1. I don't understand what you mean. If for example you edit a text file and replace e.g. "one" by "two" and save it, the file size will be the same, but the date newer -> it needs to be backed up. The size usually says NOTHING about the file itself.
Author of Total Commander
https://www.ghisler.com
oko
Senior Member
Senior Member
Posts: 250
Joined: 2007-05-03, 16:22 UTC

Post by *oko »

yes, it needs to be backed up in most cases, not always! but why is not in list if i filter list by view "not equal (red)". Why is automatically marked (green) like there was no older text file. There are two different files and these would be listed in filter when i click "not equal". Now it is made that only files with different size are marked as "not equal".
oko
Senior Member
Senior Member
Posts: 250
Joined: 2007-05-03, 16:22 UTC

Post by *oko »

Maybe give option not to automatically overwrite older by newer but to mark as not equal and let user to select how to synchronize (select direction) and mainly to have it in "not equal" list.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

option not to automatically overwrite older by newer but to mark as not equal
You can choose option "Ignore Date" to mark them "not equal"
#5767 Personal license
oko
Senior Member
Senior Member
Posts: 250
Joined: 2007-05-03, 16:22 UTC

Post by *oko »

it does not help. if i choose Ignore date file will be marked as "equal" because size is the same and different date is ignored. Although files are different they do not appear in filter "not equal".
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

it does not help.
:oops: This works with "compare by content" only ...

Try the following:
- Do a compare with subdirs and switch off all (=, =/=, <=) , green arrow remains enabled only.
- Press Ctrl-A to mark all entries
- Press Ctrl-R to mark entries for copy right to left
- Press "Synchronize" button (! DO NOT press OK right now! )
- Change the path to your backup folder
- Press OK now
#5767 Personal license
oko
Senior Member
Senior Member
Posts: 250
Joined: 2007-05-03, 16:22 UTC

Post by *oko »

Good idea sqa_wizard ;) In first step can be used also filter: view Green + Uniques. But I still think the files with different time would be marked as "not equal" and listed in filtered "not equal" list. And only if i want i could check option "newer overwrite older" before compare. So three modes would be through e.g. combo box. The right behaviour would be as the following:

If chosen "Normal"
If filesize the same YES and filetime the same YES then mark EQUAL
If filesize the same YES and filetime the same NO then mark NOT EQUAL
If filesize the same NO and filetime the same YES then mark NOT EQUAL
If filesize the same NO and filetime the same NO then mark NOT EQUAL

If chosen "Newer overwrite older"
If filesize the same YES and filetime the same YES then mark EQUAL
If filesize the same YES and filetime the same NO then mark ARROW(NEWER TO OLDER)
If filesize the same NO and filetime the same YES then mark NOT EQUAL
If filesize the same NO and filetime the same NO then mark ARROW (NEWER TO OLDER)

If chosen "Ignore date/time"
If filesize the same YES and filetime the same YES then mark EQUAL
If filesize the same YES and filetime the same NO then mark EQUAL
If filesize the same NO and filetime the same YES then mark NOT EQUAL
If filesize the same NO and filetime the same NO then mark NOT EQUAL
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50475
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

if i choose Ignore date file will be marked as "equal" because size is the same and different date is ignored. Although files are different they do not appear in filter "not equal".
Correct: With the parameters you have chosen (file name and size), the files are indentical. If you don't choose "by content", TC cannot see that the file contents are actually different...
Author of Total Commander
https://www.ghisler.com
oko
Senior Member
Senior Member
Posts: 250
Joined: 2007-05-03, 16:22 UTC

Post by *oko »

Correct:
yes, tc can not see, so automatically considers they are identical and mark them "equal". I have wrote that right and have explained that choise "ignore date" is not right for my purpose to approximate true reality. I would rather read about your intention to solve my main presented problem or not :wink: .
Post Reply