Synchronize dirs
Moderators: Hacker, petermad, Stefan2, white
Synchronize dirs
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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".
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
it does not help.

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
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

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
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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...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".
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
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 notCorrect:
